1{ config, lib, ... }:
2
3with lib;
4{
5 options = {
6 xdg.icons.enable = mkOption {
7 type = types.bool;
8 default = true;
9 description = ''
10 Whether to install files to support the
11 <link xlink:href="https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html">XDG Icon Theme specification</link>.
12 '';
13 };
14 };
15
16 config = mkIf config.xdg.icons.enable {
17 environment.pathsToLink = [
18 "/share/icons"
19 "/share/pixmaps"
20 ];
21
22 environment.profileRelativeEnvVars = {
23 XCURSOR_PATH = [ "/share/icons" ];
24 };
25 };
26
27}