nixpkgs/nixos/modules
Tor Hedin Brønner d273db48c6 nixos/shells: avoid overriding the environment for child shells
A shared exported guard `__NIXOS_SET_ENVIRONMENT_DONE` is introduced that can
be used to prevent child shells from sourcing `system.build.setEnvironment`
the second time.

This fixes e.g. `nix run derivation` when run from e.g. ZSH through the console or
ssh. Before this Bash would resource the common environment resetting the `PATH`
environment variable.

We also export `system.build.setEnvironment` to `/etc/set-environment` making it
easy to reset the common environment with `. /etc/set-environment` when
needed and to grep for environment variables in `/etc` (which was the
motivation of #30418).

This reverts changes made in b00a3fc6fd
(the original #30418).
2018-08-30 13:20:39 +00:00
..
config nixos/shells: avoid overriding the environment for child shells 2018-08-30 13:20:39 +00:00
hardware [bot] nixos/*: remove unused arguments in lambdas 2018-07-20 20:56:59 +00:00
i18n/input-method options.i18n.inputMethod.package: fix type (#43239) 2018-07-09 22:37:27 +02:00
installer set initialHashedPassword in installation-device.nix 2018-08-07 14:45:50 +02:00
misc nixos/modules/misc/version.nix: Don't spam the user with vague warnings 2018-08-10 21:39:36 +02:00
profiles set initialHashedPassword in installation-device.nix 2018-08-07 14:45:50 +02:00
programs nixos/shells: avoid overriding the environment for child shells 2018-08-30 13:20:39 +00:00
security Merge pull request #42834 from Synthetica9/patch-1 2018-07-23 11:29:18 -04:00
services Merge pull request #44820 from michaelpj/fix/redshift-geoclue-agents 2018-08-14 17:13:09 +02:00
system nixos/systemd-boot: Add missing newline 2018-08-12 15:12:27 +02:00
tasks linuxPackages.zfsUnstable: 2018-05-22 -> 2018-08-13 2018-08-14 14:12:07 +02:00
testing Revert "nixos: rename system.{stateVersion,defaultChannel} -> system.nixos.\1" 2018-07-28 00:12:55 +03:00
virtualisation virtualbox module: allow to pass the package (#44907) 2018-08-11 19:40:00 +01:00
module-list.nix Merge pull request #44556 from johanot/certmgr-module-init 2018-08-10 15:11:26 +02:00
rename.nix zfsLegacyCrypto: remove 2018-08-13 19:53:50 +02:00