aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-06-23 22:12:15 +0200
committerAdrian Kummerlaender2020-06-23 22:12:15 +0200
commit3536e250b53f583ff3f5ee5b042a18c8ffd61e48 (patch)
treee4c76264a5dafd378fccd604a794c8f3ba2679bd
parent28fdbbec65ef8128fc577929ee527291cd501a9c (diff)
downloadnixos_home-3536e250b53f583ff3f5ee5b042a18c8ffd61e48.tar
nixos_home-3536e250b53f583ff3f5ee5b042a18c8ffd61e48.tar.gz
nixos_home-3536e250b53f583ff3f5ee5b042a18c8ffd61e48.tar.bz2
nixos_home-3536e250b53f583ff3f5ee5b042a18c8ffd61e48.tar.lz
nixos_home-3536e250b53f583ff3f5ee5b042a18c8ffd61e48.tar.xz
nixos_home-3536e250b53f583ff3f5ee5b042a18c8ffd61e48.tar.zst
nixos_home-3536e250b53f583ff3f5ee5b042a18c8ffd61e48.zip
Manage mimeapps
-rw-r--r--gui/apps/file.nix9
-rw-r--r--gui/apps/web.nix5
-rw-r--r--home.nix2
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;
diff --git a/home.nix b/home.nix
index 8aead19..94ebdee 100644
--- a/home.nix
+++ b/home.nix
@@ -68,4 +68,6 @@
programs.direnv.enable = true;
programs.direnv.enableNixDirenvIntegration = true;
+
+ xdg.mimeApps.enable = true;
}