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:
Alois Wohlschlager 2022-08-07 11:43:35 +02:00
parent 738aef5117
commit efd23ff1c8
No known key found for this signature in database
GPG Key ID: E0F59EA5E5216914

View File

@ -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}";
};
};