1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

installer: fallback to a default editor

This commit is contained in:
Daiderd Jordan 2018-01-24 22:37:40 +01:00
parent 4757a160e2
commit 6f1c1049dd
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 3 additions and 1 deletions

View file

@ -11,6 +11,7 @@ in
stdenv.mkDerivation {
name = "darwin-installer";
preferLocalBuild = true;
unpackPhase = ":";
@ -56,7 +57,7 @@ stdenv.mkDerivation {
read -p "Would you like edit the default configuration.nix before starting? [y/n] " i
case "$i" in
y|Y)
$EDITOR "$config"
''${EDITOR:-nano} "$config"
;;
esac
fi

View file

@ -11,6 +11,7 @@ in
stdenv.mkDerivation {
name = "darwin-uninstaller";
preferLocalBuild = true;
unpackPhase = ":";