Initial commit
This commit is contained in:
16
modules/n/defaults.nix
Normal file
16
modules/n/defaults.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ lib, config, ... }:
|
||||
with lib; { # Thanks to azahi!
|
||||
options.n.misc.defaults = mkOption {
|
||||
description = "Default applications.";
|
||||
type = with types; attrsOf (listOf str);
|
||||
default = {};
|
||||
};
|
||||
|
||||
config.hm.xdg = {
|
||||
enable = true;
|
||||
mimeApps = {
|
||||
enable = true;
|
||||
defaultApplications = mkMerge (mapAttrsToList (n: v: genAttrs v (_: [ "${n}.desktop" ])) config.n.misc.defaults);
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user