From f80eeb5d854cc5b0ae6f66616c1f29aabf0e0279 Mon Sep 17 00:00:00 2001 From: Ambroz Bizjak Date: Sat, 18 Mar 2017 11:49:43 +0100 Subject: nixos: Define XCURSOR_PATH environment variable. In the absence of XCURSOR_PATH, the function XcursorLibraryPath in libXcursor will return a hardcoded value unsuitable for NixOS. Some desktops as well as display managers in NixOS currently do set XCURSOR_PATH, but there are combinations where neither does (e.g. SDDM+XFCE), resulting in no cursor themes being available. The new definition if XCURSOR_PATH is effectively the same as what KDE's startkde currently does. Fixes issue #21442. --- nixos/modules/programs/environment.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nixos/modules/programs') diff --git a/nixos/modules/programs/environment.nix b/nixos/modules/programs/environment.nix index a1615c920c02..48a1e2a0a883 100644 --- a/nixos/modules/programs/environment.nix +++ b/nixos/modules/programs/environment.nix @@ -20,6 +20,7 @@ in { NIXPKGS_CONFIG = "/etc/nix/nixpkgs-config.nix"; PAGER = mkDefault "less -R"; EDITOR = mkDefault "nano"; + XCURSOR_PATH = "$HOME/.icons"; }; environment.profiles = @@ -42,6 +43,7 @@ in GTK_PATH = [ "/lib/gtk-2.0" "/lib/gtk-3.0" ]; XDG_CONFIG_DIRS = [ "/etc/xdg" ]; XDG_DATA_DIRS = [ "/share" ]; + XCURSOR_PATH = [ "/share/icons" ]; MOZ_PLUGIN_PATH = [ "/lib/mozilla/plugins" ]; LIBEXEC_PATH = [ "/lib/libexec" ]; }; -- cgit 1.4.1