aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/apps/file.nix9
-rw-r--r--gui/apps/web.nix5
2 files changed, 14 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;