about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/fcuny/desktop/xdg.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/users/fcuny/desktop/xdg.nix b/users/fcuny/desktop/xdg.nix
index 44a5ce1..a932a61 100644
--- a/users/fcuny/desktop/xdg.nix
+++ b/users/fcuny/desktop/xdg.nix
@@ -10,6 +10,19 @@
 
     mimeApps = {
       enable = true;
+      defaultApplications =
+        let defaultBrowser = "firefox.desktop";
+        in {
+          "x-scheme-handler/http" = [ defaultBrowser ];
+          "x-scheme-handler/https" = [ defaultBrowser ];
+          "x-scheme-handler/chrome" = [ defaultBrowser ];
+          "application/x-extension-htm" = [ defaultBrowser ];
+          "application/x-extension-html" = [ defaultBrowser ];
+          "application/x-extension-shtml" = [ defaultBrowser ];
+          "application/xhtml+xml" = [ defaultBrowser ];
+          "application/x-extension-xhtml" = [ defaultBrowser ];
+          "application/x-extension-xht" = [ defaultBrowser ];
+        };
     };
 
     userDirs = {