python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / nixos / modules / config / xdg / icons.nix
blob8d44a431445bc833980f92be9bd11576a6461d7b
1 { config, lib, pkgs, ... }:
3 with lib;
5   meta = {
6     maintainers = teams.freedesktop.members;
7   };
9   options = {
10     xdg.icons.enable = mkOption {
11       type = types.bool;
12       default = true;
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).
16       '';
17     };
18   };
20   config = mkIf config.xdg.icons.enable {
21     environment.pathsToLink = [
22       "/share/icons"
23       "/share/pixmaps"
24     ];
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
30     ];
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 = [
38       "$HOME/.icons"
39       "$HOME/.local/share/icons"
40     ];
42     environment.profileRelativeSessionVariables.XCURSOR_PATH = [
43       "/share/icons"
44       "/share/pixmaps"
45     ];
46   };