summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2024-11-17 02:33:37 +1100
committerMichael Hoang <enzime@users.noreply.github.com>2024-11-21 11:07:47 +1100
commit9a1bea70d5728a19ee0a090dc0bcdeb73f09b7a4 (patch)
tree36ff284dcaf10d881c1c6ab4594e2eab7fef208b /pkgs
parent5cc3c00f9b689fa98c524674ddf5a569005e4bd9 (diff)
installer: move creating default configuration to README
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/darwin-installer/default.nix25
1 files changed, 3 insertions, 22 deletions
diff --git a/pkgs/darwin-installer/default.nix b/pkgs/darwin-installer/default.nix
index 78ca3c8..0eed518 100644
--- a/pkgs/darwin-installer/default.nix
+++ b/pkgs/darwin-installer/default.nix
@@ -47,25 +47,6 @@ stdenv.mkDerivation {
echo >&2 "Installing nix-darwin..."
echo >&2
- config="$HOME/.nixpkgs/darwin-configuration.nix"
- if ! test -f "$config"; then
- echo "copying example configuration.nix" >&2
- mkdir -p "$HOME/.nixpkgs"
- cp "${../../modules/examples/simple.nix}" "$config"
- chmod u+w "$config"
- fi
-
- # Skip when stdin is not a tty, eg.
- # $ yes | darwin-installer
- if test -t 0; then
- read -p "Would you like to edit the default configuration.nix before starting? [y/N] " i
- case "$i" in
- y|Y)
- PATH=$_PATH ''${EDITOR:-nano} "$config"
- ;;
- esac
- fi
-
i=y
darwinPath=$(NIX_PATH=$HOME/.nix-defexpr/channels nix-instantiate --eval -E '<darwin>' 2> /dev/null) || true
if ! test -e "$darwinPath"; then
@@ -81,13 +62,13 @@ stdenv.mkDerivation {
fi
export NIX_PATH=${nixPath}
- system=$(nix-build '<darwin>' -I "darwin-config=$config" -A system --no-out-link --show-trace)
+ system=$(nix-build '<darwin>' -A system --no-out-link --show-trace)
export PATH=$system/sw/bin:$PATH
- darwin-rebuild "$action" -I "darwin-config=$config"
+ darwin-rebuild "$action"
echo >&2
- echo >&2 " Open '$config' to get started."
+ echo >&2 " Installation complete."
echo >&2 " See the README for more information: https://github.com/LnL7/nix-darwin/blob/master/README.md"
echo >&2
echo >&2 " Please log out and log in again to make sure nix-darwin is properly loaded."