1
Fork 0

add install step

This commit is contained in:
caem 2025-01-16 20:14:24 +01:00
parent 28444db8bf
commit 0296662ad3
Signed by: caem
GPG key ID: 69A830D03203405F

View file

@ -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