about summary refs log tree commit diff
path: root/nixos/modules/config
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-09-18 11:34:02 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2019-09-18 13:03:14 -0400
commitb3f4ce351e6e34ad5bcffe0d308701570e445739 (patch)
treedef036bc1e561fcc5f29e2a419130652ee1c9a32 /nixos/modules/config
parent760b677c19ba6b1e6988e72c912270a561516939 (diff)
downloadnixlib-b3f4ce351e6e34ad5bcffe0d308701570e445739.tar
nixlib-b3f4ce351e6e34ad5bcffe0d308701570e445739.tar.gz
nixlib-b3f4ce351e6e34ad5bcffe0d308701570e445739.tar.bz2
nixlib-b3f4ce351e6e34ad5bcffe0d308701570e445739.tar.lz
nixlib-b3f4ce351e6e34ad5bcffe0d308701570e445739.tar.xz
nixlib-b3f4ce351e6e34ad5bcffe0d308701570e445739.tar.zst
nixlib-b3f4ce351e6e34ad5bcffe0d308701570e445739.zip
nixos/xdg/icons: match XCURSOR_PATH spec
Diffstat (limited to 'nixos/modules/config')
-rw-r--r--nixos/modules/config/xdg/icons.nix17
1 files changed, 14 insertions, 3 deletions
diff --git a/nixos/modules/config/xdg/icons.nix b/nixos/modules/config/xdg/icons.nix
index cc82b9e94f9a..4677ce090b0b 100644
--- a/nixos/modules/config/xdg/icons.nix
+++ b/nixos/modules/config/xdg/icons.nix
@@ -19,9 +19,20 @@ with lib;
       "/share/pixmaps"
     ];
 
-    environment.profileRelativeSessionVariables = {
-      XCURSOR_PATH = [ "/share/icons" ];
-    };
+    # libXcursor looks for cursors in XCURSOR_PATH
+    # it mostly follows the spec for icons
+    # See: https://www.x.org/releases/current/doc/man/man3/Xcursor.3.xhtml Themes
+
+    # These are preferred so they come first in the list
+    environment.sessionVariables.XCURSOR_PATH = [
+      "$HOME/.icons"
+      "$HOME/.local/share/icons"
+    ];
+
+    environment.profileRelativeSessionVariables.XCURSOR_PATH = [
+      "/share/icons"
+      "/share/pixmaps"
+    ];
   };
 
 }