1 { config, lib, pkgs, ... }:
6 maintainers = teams.freedesktop.members;
10 xdg.icons.enable = mkOption {
13 description = lib.mdDoc ''
14 Whether to install files to support the
15 [XDG Icon Theme specification](https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html).
20 config = mkIf config.xdg.icons.enable {
21 environment.pathsToLink = [
26 environment.systemPackages = [
27 # Empty icon theme that contains index.theme file describing directories
28 # where toolkits should look for icons installed by apps.
29 pkgs.hicolor-icon-theme
32 # libXcursor looks for cursors in XCURSOR_PATH
33 # it mostly follows the spec for icons
34 # See: https://www.x.org/releases/current/doc/man/man3/Xcursor.3.xhtml Themes
36 # These are preferred so they come first in the list
37 environment.sessionVariables.XCURSOR_PATH = [
39 "$HOME/.local/share/icons"
42 environment.profileRelativeSessionVariables.XCURSOR_PATH = [