Update some mimetypes, add xarchiver for thunar-archive-plugin

This commit is contained in:
Evie Litherland-Smith 2024-04-07 10:28:26 +01:00
parent b2378517d8
commit 22ef09119d

View file

@ -14,18 +14,18 @@
GRIM_DEFAULT_DIR = "$HOME/Pictures/Grim";
};
systemPackages = with pkgs; [
swaylock-effects
hyprpaper
xdg-utils
wtype
wl-clipboard
xarchiver
xdg-utils
swaylock-effects
hyprpaper
swayimg
pamixer
pavucontrol
playerctl
brightnessctl
mpv
streamlink
];
};
security.pam.services = {
@ -56,8 +56,8 @@
"inode/directory" = emacs;
"inode/symlink" = emacs;
"image/jpeg" = ["swayimg.desktop"] ++ emacs;
"image/png" = ["swayimg.desktop"] ++ emacs;
"image/jpeg" = ["swayimg.desktop"];
"image/png" = ["swayimg.desktop"];
"video/mp4" = ["mpv.desktop"];
"text/plain" = emacs;
@ -87,14 +87,16 @@
"application/toml" = emacs;
"application/yaml" = emacs;
"application/xml" = emacs;
"application/pdf" = emacs;
"application/epub+zip" = emacs;
"application/rss+xml" = emacs;
"application/xhtml+xml" = emacs;
"application/oxps" = emacs;
# "application/msword" = emacs;
"application/xhtml+xml" = browser;
"application/x-shellscript" = emacs;
"application/pdf" = ["mupdf.desktop"];
"application/epub+zip" = ["mupdf.desktop"];
"application/msword" = ["writer.desktop"];
"application/zip" = ["xarchiver.desktop"];
"application/x-extension-htm" = browser;
"application/x-extension-html" = browser;
"application/x-extension-shtml" = browser;
@ -108,19 +110,16 @@
"x-scheme-handler/chrome" = browser;
"x-scheme-handler/webcal" = browser;
"x-scheme-handler/unknown" = emacs;
# "x-scheme-handler/ms-word" = emacs;
# "x-scheme-handler/ms-powerpoint" = emacs;
# "x-scheme-handler/ms-excel" = emacs;
# "x-scheme-handler/msteams" = ["teams-for-linux.desktop"];
"x-scheme-handler/ms-word" = ["writer.desktop"];
"x-scheme-handler/ms-powerpoint" = ["impress.desktop"];
"x-scheme-handler/ms-excel" = ["calc.desktop"];
};
in {
enable = true;
defaultApplications = applications;
addedAssociations = applications;
removedAssociations = {
"x-scheme-handler/msteams" = browser;
"x-scheme-handler/zoomus" = browser;
};
removedAssociations = {"x-scheme-handler/zoomus" = browser;};
};
programs = {
dconf.enable = true;