summaryrefslogtreecommitdiff
path: root/guix-strap/guix-setup-user
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-10-07 16:59:12 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-10-07 16:59:12 -0400
commit0be7c27439b75a16cd340b4a72855a7cc6cec06a (patch)
tree3ec923632137c223911a21ed169a1247d9051406 /guix-strap/guix-setup-user
parentformat btrfs, no YES on cryptsetup format needed (diff)
downloaddotfiles-guix-0be7c27439b75a16cd340b4a72855a7cc6cec06a.tar.gz
dotfiles-guix-0be7c27439b75a16cd340b4a72855a7cc6cec06a.tar.bz2
dotfiles-guix-0be7c27439b75a16cd340b4a72855a7cc6cec06a.zip
guix strap done (hopefully)
Diffstat (limited to 'guix-strap/guix-setup-user')
-rwxr-xr-xguix-strap/guix-setup-user21
1 files changed, 21 insertions, 0 deletions
diff --git a/guix-strap/guix-setup-user b/guix-strap/guix-setup-user
new file mode 100755
index 0000000..5933116
--- /dev/null
+++ b/guix-strap/guix-setup-user
@@ -0,0 +1,21 @@
+#!/run/current-system/profile/bin/bash
+
+# This should run on user first logon, so let's a go!
+# First, we should run a guix pull
+
+guix pull
+
+hash guix
+
+guix home -L ~/.config/guix/modules reconfigure ~/.config/guix/home-config/home-configuration.scm
+
+sudo -E herd restart nix-daemon
+
+nix-channel --update
+
+nix-shell '<home-manager>' -A install
+
+rm ~/.zprofile
+source ~/.config/zsh/.zprofile
+
+home-manager switch