diff options
author | Michael Peyton Jones <me@michaelpj.com> | 2018-08-15 09:55:35 +0100 |
---|---|---|
committer | Michael Peyton Jones <me@michaelpj.com> | 2018-08-16 21:23:34 +0100 |
commit | 13e2e19158bcd2b4d53e452d82f62817194100ef (patch) | |
tree | 71a13eecf2ba743d8df7a57c3dc577dd4ae9d630 /nixos/modules/config/xdg/icons.nix | |
parent | 52e7817aa2c33b8569b6fdc884f98a34fbf6f61e (diff) | |
download | nixlib-13e2e19158bcd2b4d53e452d82f62817194100ef.tar nixlib-13e2e19158bcd2b4d53e452d82f62817194100ef.tar.gz nixlib-13e2e19158bcd2b4d53e452d82f62817194100ef.tar.bz2 nixlib-13e2e19158bcd2b4d53e452d82f62817194100ef.tar.lz nixlib-13e2e19158bcd2b4d53e452d82f62817194100ef.tar.xz nixlib-13e2e19158bcd2b4d53e452d82f62817194100ef.tar.zst nixlib-13e2e19158bcd2b4d53e452d82f62817194100ef.zip |
xdg: add modules for supporting various XDG specs
Diffstat (limited to 'nixos/modules/config/xdg/icons.nix')
-rw-r--r-- | nixos/modules/config/xdg/icons.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/nixos/modules/config/xdg/icons.nix b/nixos/modules/config/xdg/icons.nix new file mode 100644 index 000000000000..8268a3771a0e --- /dev/null +++ b/nixos/modules/config/xdg/icons.nix @@ -0,0 +1,27 @@ +{ config, lib, ... }: + +with lib; +{ + options = { + xdg.icons.enable = mkOption { + type = types.bool; + default = true; + description = '' + Whether to install files to support the + <link xlink:href="https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html">XDG Icon Theme specification</link>. + ''; + }; + }; + + config = mkIf config.xdg.icons.enable { + environment.pathsToLink = [ + "/share/icons" + "/share/pixmaps" + ]; + + environment.profileRelativeEnvVars = { + XCURSOR_PATH = [ "/share/icons" ]; + }; + }; + +} |