From d75d8cbfb6c8fb5ed8aee5142a75df09bf43e7b6 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 20 Feb 2025 12:31:30 -0600 Subject: [PATCH] feat: add installer cancellation step --- packages/installer.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/installer.nix b/packages/installer.nix index 93454a5..0feefb1 100644 --- a/packages/installer.nix +++ b/packages/installer.nix @@ -24,6 +24,10 @@ pkgs.writeShellApplication { echo "$pass1" | tr -d "\n" > /tmp/secret.key + echo "This will install the host configuration for '$nixos_host' to '$disk_path' using partition scheme '$partition_scheme'. All data on the disk will be lost." + echo "Press enter to proceed. Press Ctrl-C to cancel." + read -r + nix-shell --packages git --run "sudo nix run \ --extra-experimental-features nix-command \ --extra-experimental-features flakes \