From 5094e32ccea3168a5cb9ee6e3b7e74aaf4d866a9 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Sun, 9 Mar 2025 12:52:07 +0000 Subject: [PATCH] home-cursor: use home.sessionSearchVariables for XCURSOR_PATH --- modules/config/home-cursor.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/config/home-cursor.nix b/modules/config/home-cursor.nix index c7699bb37..5babbca78 100644 --- a/modules/config/home-cursor.nix +++ b/modules/config/home-cursor.nix @@ -153,16 +153,17 @@ in { home.packages = [ cfg.package defaultIndexThemePackage ]; + home.sessionVariables = { + XCURSOR_SIZE = mkDefault cfg.size; + XCURSOR_THEME = mkDefault cfg.name; + }; + # Set directory to look for cursors in, needed for some applications # that are unable to find cursors otherwise. See: # https://github.com/nix-community/home-manager/issues/2812 # https://wiki.archlinux.org/title/Cursor_themes#Environment_variable - home.sessionVariables = { - XCURSOR_PATH = mkDefault ("$XCURSOR_PATH\${XCURSOR_PATH:+:}" - + "${config.home.profileDirectory}/share/icons"); - XCURSOR_SIZE = mkDefault cfg.size; - XCURSOR_THEME = mkDefault cfg.name; - }; + home.sessionSearchVariables.XCURSOR_PATH = + [ "${config.home.profileDirectory}/share/icons" ]; # Add symlink of cursor icon directory to $HOME/.icons, needed for # backwards compatibility with some applications. See: