From efd23ff1c8f0cebc4aa41f08815d71a0a2556d48 Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Sun, 7 Aug 2022 11:43:35 +0200 Subject: [PATCH] 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. --- nixos/modules/services/x11/gdk-pixbuf.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/gdk-pixbuf.nix b/nixos/modules/services/x11/gdk-pixbuf.nix index 2105224f92f..9c088e4cc42 100644 --- a/nixos/modules/services/x11/gdk-pixbuf.nix +++ b/nixos/modules/services/x11/gdk-pixbuf.nix @@ -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}"; }; };