From e2cc3f5f342c9ca80d83e35ce8aa6dc2ff9e468a Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Fri, 15 Sep 2023 20:57:54 -0400 Subject: [PATCH] test 1 for auto deploy --- deploy.sh | 30 +++++++++------------------ modules/ryan-config/user_first_run.sh | 20 ++++++++++++++++++ 2 files changed, 30 insertions(+), 20 deletions(-) create mode 100644 modules/ryan-config/user_first_run.sh diff --git a/deploy.sh b/deploy.sh index 7f14eff..f27d6c9 100755 --- a/deploy.sh +++ b/deploy.sh @@ -39,10 +39,10 @@ copy_and_prepare() { # Copy template to root of repo if [ "$install_type" == "e" ] then - cp ./modules/ryan-config/deploy-templates/HostTemplateEncrypted.scm ./$install_hostname.scm + cp ./modules/ryan-config/deploy-templates/HostTemplateEncrypted ./$install_hostname.scm elif [ "$install_type" == "d" ] then - cp ./modules/ryan-config/deploy-templates/HostTemplate.scm ./$install_hostname.scm + cp ./modules/ryan-config/deploy-templates/HostTemplate ./$install_hostname.scm else echo "Invalid install type (not d or e), bailing!" exit 1 @@ -72,28 +72,15 @@ install_system() { 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 - # First copy the file - cp ~/guix-dotfiles/$install_hostname /mnt/$install_hostname.scm + # Copy some files over to prepare for reboot USER=ryan - chroot /mnt <' -A install + +source ~/.bashrc + +home-manager switch