diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2018-10-26 09:10:28 +0100 |
|---|---|---|
| committer | Daiderd Jordan <daiderd@gmail.com> | 2018-10-26 09:10:28 +0100 |
| commit | 79d356909bd34ca52e44d44f279db784247b46d2 (patch) | |
| tree | 429f8820040d26513e524889ad4954442d82f338 | |
| parent | e6a698a7011487f16dd061d65e36ec330465ed16 (diff) | |
installer: don't use pure PATH for editor
For the rest of the installer we want to make sure nothing installed by
the user interferes, however a user's editor might be installed
anywhere.
| -rw-r--r-- | pkgs/darwin-installer/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/darwin-installer/default.nix b/pkgs/darwin-installer/default.nix index 638f2bb..3267071 100644 --- a/pkgs/darwin-installer/default.nix +++ b/pkgs/darwin-installer/default.nix @@ -24,6 +24,7 @@ stdenv.mkDerivation { shellHook = '' set -e + _PATH=$PATH export PATH=/nix/var/nix/profiles/default/bin:${nix}/bin:${pkgs.openssh}/bin:/usr/bin:/bin:/usr/sbin:/sbin action=switch @@ -58,7 +59,7 @@ stdenv.mkDerivation { read -p "Would you like edit the default configuration.nix before starting? [y/n] " i case "$i" in y|Y) - ''${EDITOR:-nano} "$config" + PATH=$_PATH ''${EDITOR:-nano} "$config" ;; esac fi |
