nixos: make GIO_EXTRA_MODULES a session variable

Allow applications started by the systemd user session manager to find
their GIO_EXTRA_MODULES.
This commit is contained in:
Naïm Favier 2022-01-15 21:53:58 +01:00
commit 23cfef7ec0
No known key found for this signature in database
GPG key ID: 49B07322580B7EE2
4 changed files with 4 additions and 3 deletions

View file

@ -57,7 +57,7 @@ in
services.udev.packages = [ pkgs.libmtp.out ];
# Needed for unwrapped applications
environment.variables.GIO_EXTRA_MODULES = [ "${cfg.package}/lib/gio/modules" ];
environment.sessionVariables.GIO_EXTRA_MODULES = [ "${cfg.package}/lib/gio/modules" ];
};