diff --git a/home/user/xdg.nix b/home/user/xdg.nix index 98de850..14c55a4 100644 --- a/home/user/xdg.nix +++ b/home/user/xdg.nix @@ -1,11 +1,21 @@ -{ +let + defaultBrowser = "io.gitlab.librewolf-community.desktop"; + defaultFileManager = "ranger.desktop"; +in { xdg = { enable = true; mimeApps = { enable = true; defaultApplications = { - "x-scheme-handler/http" = "io.gitlab.librewolf-community.desktop"; - "x-scheme-handler/https" = "io.gitlab.librewolf-community.desktop"; + # Default web browser. + "text/html" = defaultBrowser; + "x-scheme-handler/http" = defaultBrowser; + "x-scheme-handler/https" = defaultBrowser; + "x-scheme-handler/about" = defaultBrowser; + "x-scheme-handler/unknown" = defaultBrowser; + + # Default file manager. + "inode/directory" = defaultFileManager; }; }; };