mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-11-13 04:56:53 +03:00
installer: fallback to a default editor
This commit is contained in:
parent
4757a160e2
commit
6f1c1049dd
@ -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
|
||||
|
@ -11,6 +11,7 @@ in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "darwin-uninstaller";
|
||||
preferLocalBuild = true;
|
||||
|
||||
unpackPhase = ":";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user