add install step
This commit is contained in:
parent
28444db8bf
commit
0296662ad3
1 changed files with 12 additions and 0 deletions
12
install.sh
12
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
|
||||
|
|
Loading…
Add table
Reference in a new issue