summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh20
1 files changed, 20 insertions, 0 deletions
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() {
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
67install_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
72install_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
71gather_env 89gather_env
72copy_and_prepare 90copy_and_prepare
91install_system
92install_user_env