diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-08-22 14:04:23 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-08-22 14:04:23 +0200 |
commit | 8ce715e40280eb658d99ada2b8a34ead7f5e1278 (patch) | |
tree | eef8c3dbbc84cb62216e7bd027cbb3a60894c529 /accounts/gkleen@sif/default.nix | |
parent | 650e70a1a78beb5ed80d11d21c3f0d1f0a6a6378 (diff) | |
download | nixos-8ce715e40280eb658d99ada2b8a34ead7f5e1278.tar nixos-8ce715e40280eb658d99ada2b8a34ead7f5e1278.tar.gz nixos-8ce715e40280eb658d99ada2b8a34ead7f5e1278.tar.bz2 nixos-8ce715e40280eb658d99ada2b8a34ead7f5e1278.tar.xz nixos-8ce715e40280eb658d99ada2b8a34ead7f5e1278.zip |
...
Diffstat (limited to 'accounts/gkleen@sif/default.nix')
-rw-r--r-- | accounts/gkleen@sif/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix index 615b783d..d3db91c8 100644 --- a/accounts/gkleen@sif/default.nix +++ b/accounts/gkleen@sif/default.nix | |||
@@ -396,6 +396,22 @@ in { | |||
396 | }; | 396 | }; |
397 | }; | 397 | }; |
398 | 398 | ||
399 | xdg.mimeApps = { | ||
400 | enable = true; | ||
401 | defaultApplications = let | ||
402 | filters = { | ||
403 | }; | ||
404 | filter = n: v: (filters.${n} or lib.id) (lib.filter (d: d != "emacs.desktop") v); | ||
405 | in lib.mapAttrs filter (cfg.lib.xdg.mimeAssociations [ | ||
406 | cfg.programs.zathura.package | ||
407 | pkgs.sxiv | ||
408 | cfg.programs.emacs.package | ||
409 | cfg.programs.firefox.package | ||
410 | ]) // { | ||
411 | "x-scheme-handler/mailto" = "thunderbird.desktop"; | ||
412 | }; | ||
413 | }; | ||
414 | |||
399 | fonts.fontconfig.enable = true; | 415 | fonts.fontconfig.enable = true; |
400 | 416 | ||
401 | systemd.user = import ./systemd.nix inputs; | 417 | systemd.user = import ./systemd.nix inputs; |