home.pointerCursor: use mkDefault to set XCURSOR_PATH (#3553)

fixes https://github.com/nix-community/home-manager/issues/3551
This commit is contained in:
polykernel 2023-01-03 16:21:40 -05:00 committed by GitHub
parent 498c46ea5d
commit 54245e1820
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,8 +131,8 @@ in {
# https://github.com/nix-community/home-manager/issues/2812 # https://github.com/nix-community/home-manager/issues/2812
# https://wiki.archlinux.org/title/Cursor_themes#Environment_variable # https://wiki.archlinux.org/title/Cursor_themes#Environment_variable
home.sessionVariables = { home.sessionVariables = {
XCURSOR_PATH = "$XCURSOR_PATH\${XCURSOR_PATH:+:}" XCURSOR_PATH = mkDefault ("$XCURSOR_PATH\${XCURSOR_PATH:+:}"
+ "${config.home.profileDirectory}/share/icons"; + "${config.home.profileDirectory}/share/icons");
}; };
} }