diff --git a/deploy.sh b/deploy.sh index cc7038f..80bd40f 100755 --- a/deploy.sh +++ b/deploy.sh @@ -62,11 +62,31 @@ copy_and_prepare() { echo "Installing non-guix signing keys for substitutes..." curl -o sign-key.pub https://substitutes.nonguix.org/signing-key.pub guix archive --authorize < sign-key.pub +} +install_system() { echo "Beginning install!" guix time-machine -C ./channels.scm -- system -L ./modules --substitute-urls='https://substitutes.nonguix.org https://bordeaux.guix.gnu.org https://ci.guix.gnu.org' init $install_hostname.scm /mnt +} + +install_user_env() { + # System should be installed now, we can chroot in and configure the user profile now + # NOTE: This assumes the user "ryan" for things, so change the USER var if you change your username + + # Mount the special block devices to prepare for chroot + mount --rbind /proc /mnt/proc + mount --rbind /sys /mnt/sys + mount --rbind /dev /mnt/dev + + # chroot into system and run commands + USER=ryan + chroot /mnt <