Skip to content

Commit

Permalink
nixos: make GIO_EXTRA_MODULES a session variable
Browse files Browse the repository at this point in the history
Allow applications started by the systemd user session manager to find
their GIO_EXTRA_MODULES.
  • Loading branch information
ncfavier committed Jan 20, 2022
1 parent d25ffc3 commit 23cfef7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nixos/modules/programs/dconf.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ in
environment.systemPackages = [ pkgs.dconf ];

# Needed for unwrapped applications
environment.variables.GIO_EXTRA_MODULES = mkIf cfg.enable [ "${pkgs.dconf.lib}/lib/gio/modules" ];
environment.sessionVariables.GIO_EXTRA_MODULES = mkIf cfg.enable [ "${pkgs.dconf.lib}/lib/gio/modules" ];
};

}
2 changes: 1 addition & 1 deletion nixos/modules/services/desktops/gnome/glib-networking.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ with lib;

systemd.packages = [ pkgs.glib-networking ];

environment.variables.GIO_EXTRA_MODULES = [ "${pkgs.glib-networking.out}/lib/gio/modules" ];
environment.sessionVariables.GIO_EXTRA_MODULES = [ "${pkgs.glib-networking.out}/lib/gio/modules" ];

};

Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/desktops/gvfs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" ];

};

Expand Down
1 change: 1 addition & 0 deletions nixos/modules/services/x11/display-managers/gdm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ in
environment = {
GDM_X_SERVER_EXTRA_ARGS = toString
(filter (arg: arg != "-terminate") cfg.xserverArgs);
# GDM is needed for gnome-login.session
XDG_DATA_DIRS = "${gdm}/share:${cfg.sessionData.desktops}/share";
} // optionalAttrs (xSessionWrapper != null) {
# Make GDM use this wrapper before running the session, which runs the
Expand Down

0 comments on commit 23cfef7

Please sign in to comment.