summaryrefslogtreecommitdiff
path: root/archetypes/profiles/desktop
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-08-30 16:38:19 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-08-30 16:38:19 -0500
commit5b5eb10c5985d21f5ae3a1d84ff3e3ecfce10ea5 (patch)
tree1ac56cc22a5add23f967823b32e7d78792640ff0 /archetypes/profiles/desktop
parent425cbb03ab00c8c25fd3cab160898188ea8ae57f (diff)
downloadnixos-5b5eb10c5985d21f5ae3a1d84ff3e3ecfce10ea5.tar.xz
nixos-5b5eb10c5985d21f5ae3a1d84ff3e3ecfce10ea5.zip
allow setting default application for generic categories of mime-types instead of the mimewiz like method
Diffstat (limited to 'archetypes/profiles/desktop')
-rw-r--r--archetypes/profiles/desktop/default.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/archetypes/profiles/desktop/default.nix b/archetypes/profiles/desktop/default.nix
index 499de17..00dea7e 100644
--- a/archetypes/profiles/desktop/default.nix
+++ b/archetypes/profiles/desktop/default.nix
@@ -72,7 +72,17 @@
desktop = mkDesktop true;
};
- xdg.mimeApps._setDefaultApplications.enable = true;
+ xdg.mimeApps._defaultCategoryApplications = {
+ enable = true;
+ categoryApplications = {
+ audio = [ "mpv" ];
+ email = [ "thunderbird" ];
+ image = [ "sxiv" ];
+ pdf = [ "org.pwmt.zathura-pdf-mupdf" ];
+ text = [ "nvim" ];
+ video = [ "mpv" ];
+ };
+ };
};
in {
imports = [ (lib._mkProfileArchetype "desktop" nixosConfig homeConfig) ];