dotfiles-guix/guix-strap/guix-setup

53 lines
1.6 KiB
Text
Raw Normal View History

2023-10-07 19:42:29 +00:00
#!/run/current-system/profile/bin/bash
2023-10-07 19:38:22 +00:00
2023-10-07 20:59:12 +00:00
echo "#!/run/current-system/profile/bin/bash" > ./guix-env
echo "" > ./guix-env
2023-10-07 19:38:22 +00:00
welcome() {
cat<<"EOF"
░░░ ░░░
░░▒▒░░░░░░░░░ ░░░░░░░░░▒▒░░
░░▒▒▒▒▒░░░░░░░ ░░░░░░░▒▒▒▒▒░
░▒▒▒░░▒▒▒▒▒ ░░░░░░░▒▒░
░▒▒▒▒░ ░░░░░░
▒▒▒▒▒ ░░░░░░
▒▒▒▒▒ ░░░░░
░▒▒▒▒▒ ░░░░░
▒▒▒▒▒ ░░░░░
▒▒▒▒▒ ░░░░░
░▒▒▒▒▒░░░░░
▒▒▒▒▒▒░░░
▒▒▒▒▒▒░
____ _ _ _____ __ ____ _
/ ___| | | |_ _\ \/ / / ___|| |_ _ __ __ _ _ __
| | _| | | || | \ / \___ \| __| '__/ _` | '_ \
| |_| | |_| || | / \ ___) | |_| | | (_| | |_) |
\____|\___/|___/_/\_\ |____/ \__|_| \__,_| .__/
|_|
This script installs GNU Guix on your system
https://www.gnu.org/software/guix/
EOF
echo -n "Press return to continue..."
read -r ANSWER
}
2023-10-10 00:25:57 +00:00
cleanup() {
herd stop cow-store
umount /mnt/boot/efi
umount /mnt
umount /tmp
cryptsetup close cryptroot
}
2023-10-07 19:38:22 +00:00
welcome
./guix-partition
2023-10-07 19:39:02 +00:00
./guix-crypt
2023-10-07 20:59:12 +00:00
./guix-configure
2023-11-03 16:24:31 +00:00
./guix-prepare
2023-10-07 20:59:12 +00:00
./guix-install
2023-10-10 00:25:57 +00:00
cleanup
2023-10-07 20:59:12 +00:00
echo "GNU Guix has been installed, you can now reboot..."
exit 0