From 0296662ad38839b9d9ddecd27953f7193adac59c Mon Sep 17 00:00:00 2001 From: caem Date: Thu, 16 Jan 2025 20:14:24 +0100 Subject: [PATCH] add install step --- install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/install.sh b/install.sh index 259647a..3db0180 100755 --- a/install.sh +++ b/install.sh @@ -137,6 +137,18 @@ generate_config() { sudo nixos-generate-config --no-filesystems --root /mnt } +install() { + sudo nixos-install +} + +reboot_on_consent() { + printf "\n\nInstallation complete. Would you like to reboot?\n[y/n] >" + read -r do_reboot + if [ "$do_reboot" = "y" ] || [ "$do_reboot" = "Y" ]; then + sudo reboot + fi +} + main () { args "$@" permissions