Investigate using pam_env.so
during install to set variables for all shells
#7027
Labels
pam_env.so
during install to set variables for all shells
#7027
Is your feature request related to a problem? Please describe.
It would be desirable for Nix to utilize
/etc/environment
on systems withpam_env.so
to set variables across all shells. This would be beneficial as Nix could support theoretically any shell on those platforms.Describe the solution you'd like
On systems where
pam_env.so
existed, thescripts/install-nix-from-closure.sh
script could manipulate the/etc/environment
file instead of the current process of scanning for relevant files for pre-defined shells:nix/scripts/install-nix-from-closure.sh
Lines 211 to 237 in aa4ca8b
Describe alternatives you've considered
We could continue doing as we currently do and only set pre-known shells.
Additional context
Brought up by #7014 (comment)
The text was updated successfully, but these errors were encountered: