mirror of
https://github.com/nix-community/home-manager
synced 2024-11-30 06:59:45 +01:00
targets.genericLinux: include additional directories in XCURSOR_PATH (#2902)
This commit appends system-wide icon and pixmap directory and the icon directory in the home-manager profile to the XCURSOR_PATH session variable for the generic linux target. This is necessary because the default prefix for libXcursor resolves to the Nix store which excludes the aforementioned directories from being searched for cursor themes. [1] [1] - https://github.com/nix-community/home-manager/pull/2891#issuecomment-1101064521.
This commit is contained in:
parent
8d38ca8868
commit
8ec13d33b1
1 changed files with 11 additions and 0 deletions
|
@ -43,6 +43,17 @@ in {
|
|||
"/var/lib/snapd/desktop"
|
||||
];
|
||||
|
||||
# We need to append system-wide FHS directories due to the default prefix
|
||||
# resolving to the Nix store.
|
||||
# https://github.com/nix-community/home-manager/pull/2891#issuecomment-1101064521
|
||||
home.sessionVariables = {
|
||||
XCURSOR_PATH = "$XCURSOR_PATH\${XCURSOR_PATH:+:}" + concatStringsSep ":" [
|
||||
"${config.home.profileDirectory}/share/icons"
|
||||
"/usr/share/icons"
|
||||
"/usr/share/pixmaps"
|
||||
];
|
||||
};
|
||||
|
||||
home.sessionVariablesExtra = ''
|
||||
. "${pkgs.nix}/etc/profile.d/nix.sh"
|
||||
|
||||
|
|
Loading…
Reference in a new issue