diff options
author | Tim Keller <tjk@tjkeller.xyz> | 2025-08-30 16:38:19 -0500 |
---|---|---|
committer | Tim Keller <tjk@tjkeller.xyz> | 2025-08-30 16:38:19 -0500 |
commit | 5b5eb10c5985d21f5ae3a1d84ff3e3ecfce10ea5 (patch) | |
tree | 1ac56cc22a5add23f967823b32e7d78792640ff0 /archetypes/profiles/desktop | |
parent | 425cbb03ab00c8c25fd3cab160898188ea8ae57f (diff) | |
download | nixos-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.nix | 12 |
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) ]; |