diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2018-01-14 22:02:27 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2018-01-14 22:02:27 +0100 |
| commit | 29f9fb52b37733720cd0f102f9cb968cc4e3e059 (patch) | |
| tree | 9b905472bbf09f557e5c8f7d06ff56738f7e9c12 | |
| parent | ca1678c06c1caa4d5e8a30e3f476d9b21e80ed90 (diff) | |
activation-scripts: include system in PATH
This makes rollback more reliable by using the same version of tools
that where used previously. For example nix is used during the
activation checks.
| -rw-r--r-- | modules/system/activation-scripts.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/activation-scripts.nix b/modules/system/activation-scripts.nix index 8b873e7..b868b0c 100644 --- a/modules/system/activation-scripts.nix +++ b/modules/system/activation-scripts.nix @@ -40,7 +40,7 @@ in #! ${stdenv.shell} set -e set -o pipefail - export PATH=${pkgs.coreutils}/bin:${config.environment.systemPath} + export PATH=${pkgs.coreutils}/bin:@out@/sw/bin:${config.environment.systemPath} systemConfig=@out@ @@ -82,7 +82,7 @@ in #! ${stdenv.shell} set -e set -o pipefail - export PATH=${pkgs.coreutils}/bin:${config.environment.systemPath} + export PATH=${pkgs.coreutils}/bin:@out@/sw/bin:${config.environment.systemPath} systemConfig=@out@ |
