diff options
author | Adrian Kummerlaender | 2020-06-23 22:12:15 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2020-06-23 22:12:15 +0200 |
commit | 3536e250b53f583ff3f5ee5b042a18c8ffd61e48 (patch) | |
tree | e4c76264a5dafd378fccd604a794c8f3ba2679bd /gui/apps | |
parent | 28fdbbec65ef8128fc577929ee527291cd501a9c (diff) | |
download | nixos_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
Diffstat (limited to 'gui/apps')
-rw-r--r-- | gui/apps/file.nix | 9 | ||||
-rw-r--r-- | gui/apps/web.nix | 5 |
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; |