diff options
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -62,11 +62,31 @@ copy_and_prepare() { | |||
62 | echo "Installing non-guix signing keys for substitutes..." | 62 | echo "Installing non-guix signing keys for substitutes..." |
63 | curl -o sign-key.pub https://substitutes.nonguix.org/signing-key.pub | 63 | curl -o sign-key.pub https://substitutes.nonguix.org/signing-key.pub |
64 | guix archive --authorize < sign-key.pub | 64 | guix archive --authorize < sign-key.pub |
65 | } | ||
65 | 66 | ||
67 | install_system() { | ||
66 | echo "Beginning install!" | 68 | echo "Beginning install!" |
67 | 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 | 69 | 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 |
70 | } | ||
71 | |||
72 | install_user_env() { | ||
73 | # System should be installed now, we can chroot in and configure the user profile now | ||
74 | # NOTE: This assumes the user "ryan" for things, so change the USER var if you change your username | ||
75 | |||
76 | # Mount the special block devices to prepare for chroot | ||
77 | mount --rbind /proc /mnt/proc | ||
78 | mount --rbind /sys /mnt/sys | ||
79 | mount --rbind /dev /mnt/dev | ||
80 | |||
81 | # chroot into system and run commands | ||
82 | USER=ryan | ||
83 | chroot /mnt <<EOT | ||
84 | |||
85 | EOT | ||
68 | 86 | ||
69 | } | 87 | } |
70 | 88 | ||
71 | gather_env | 89 | gather_env |
72 | copy_and_prepare | 90 | copy_and_prepare |
91 | install_system | ||
92 | install_user_env | ||