mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
nixos/gdk-pixbuf: move GDK_PIXBUF_MODULE_FILE to sessionVariables
Some environments do not load /etc/profile, so environment.variables do not work. In particular, this is the case for Plasma Wayland. Use environment.sessionVariables for setting that variable instead, which is handled by PAM and hence more reliable.
This commit is contained in:
parent
738aef5117
commit
efd23ff1c8
@ -21,7 +21,7 @@ in
|
||||
# loaders.cache based on that and set the environment variable
|
||||
# GDK_PIXBUF_MODULE_FILE to point to it.
|
||||
config = lib.mkIf (cfg.modulePackages != []) {
|
||||
environment.variables = {
|
||||
environment.sessionVariables = {
|
||||
GDK_PIXBUF_MODULE_FILE = "${loadersCache}";
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user