summaryrefslogtreecommitdiff
path: root/installer/guix-setup-user
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-06-21 22:52:21 -0400
committerFreya Murphy <freya@freyacat.org>2024-06-21 22:52:21 -0400
commitcf5d8d92f1904511006a89970349dbf723ae1732 (patch)
tree2deb7af8e9031a502b6b7f1c263198e4d6b93f9f /installer/guix-setup-user
parentupdate guixstrap (diff)
downloaddotfiles-guix-cf5d8d92f1904511006a89970349dbf723ae1732.tar.gz
dotfiles-guix-cf5d8d92f1904511006a89970349dbf723ae1732.tar.bz2
dotfiles-guix-cf5d8d92f1904511006a89970349dbf723ae1732.zip
update things
Diffstat (limited to 'installer/guix-setup-user')
-rwxr-xr-xinstaller/guix-setup-user21
1 files changed, 21 insertions, 0 deletions
diff --git a/installer/guix-setup-user b/installer/guix-setup-user
new file mode 100755
index 0000000..5933116
--- /dev/null
+++ b/installer/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