diff options
-rw-r--r-- | gui/apps/file.nix | 9 | ||||
-rw-r--r-- | gui/apps/web.nix | 5 | ||||
-rw-r--r-- | home.nix | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/gui/apps/file.nix b/gui/apps/file.nix index 7fa1f64..3474cbd 100644 --- a/gui/apps/file.nix +++ b/gui/apps/file.nix @@ -42,6 +42,15 @@ ''; }; + xdg.mimeApps.defaultApplications = { + "application/pdf" = [ "org.gnome.Evince.desktop" ]; + + "image/png" = [ "sxiv.desktop" ]; + "image/jpg" = [ "sxiv.desktop" ]; + + "video/mp4" = [ "mpv.desktop" ]; + }; + # sxiv config xresources.extraConfig = '' Sxiv.font: Iosevka:size=12 diff --git a/gui/apps/web.nix b/gui/apps/web.nix index 540150a..5b85ba5 100644 --- a/gui/apps/web.nix +++ b/gui/apps/web.nix @@ -10,6 +10,11 @@ ]); }; + xdg.mimeApps.defaultApplications = { + "x-scheme-handler/http" = [ "firefox.desktop" ]; + "x-scheme-handler/https" = [ "firefox.desktop" ]; + }; + programs.firefox.enable = true; services.syncthing.enable = true; @@ -68,4 +68,6 @@ programs.direnv.enable = true; programs.direnv.enableNixDirenvIntegration = true; + + xdg.mimeApps.enable = true; } |