some deploy.sh changes

a3a44f9054c1… · Ryan Schanzenbacher ·

parent 297ef48f8e8b… view tree

Changed files

diff --git a/deploy.sh b/deploy.sh
index 80bd40f..7f14eff 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -79,8 +79,19 @@ install_user_env() {
mount --rbind /dev /mnt/dev
# chroot into system and run commands
+ # First copy the file
+ cp ~/guix-dotfiles/$install_hostname /mnt/$install_hostname.scm
USER=ryan
chroot /mnt <<EOT
+
+ # Activate commands
+ source /var/guix/profiles/system/profile/etc/profile
+ /var/guix/profiles/system/activate
+ guix-daemon --build-users-group=guixbuild --disable-chroot &
+
+ guix shell git -- git clone https://git.stationery.faith/ryan77627/guix-dotfiles /home/$USER/.config/guix
+
+ mv /$install_hostname.scm /home/$USER/.config/guix/$install_hostname.scm
EOT
diff --git a/home-config/deploy-flag b/home-config/deploy-flag
new file mode 100644
index 0000000..e69de29
diff --git a/modules/ryan-config/deploy-templates/HostTemplate.scm b/modules/ryan-config/deploy-templates/HostTemplate
similarity index 100%
rename from modules/ryan-config/deploy-templates/HostTemplate.scm
rename to modules/ryan-config/deploy-templates/HostTemplate
diff --git a/modules/ryan-config/deploy-templates/HostTemplateEncrypted.scm b/modules/ryan-config/deploy-templates/HostTemplateEncrypted
similarity index 100%
rename from modules/ryan-config/deploy-templates/HostTemplateEncrypted.scm
rename to modules/ryan-config/deploy-templates/HostTemplateEncrypted