mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
28 lines
604 B
Nix
28 lines
604 B
Nix
{ 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" ];
|
|
};
|
|
};
|
|
|
|
}
|