summaryrefslogtreecommitdiff
path: root/scripts/reconfigure-system
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-12-12 19:15:02 -0500
committerFreya Murphy <freya@freyacat.org>2024-12-12 19:15:02 -0500
commit141e111a489ce91fac611537f6b718a57f556c4e (patch)
treeca8078761af62502d053096a4f141abbee860323 /scripts/reconfigure-system
parentbuild-installer script (diff)
downloaddotfiles-guix-141e111a489ce91fac611537f6b718a57f556c4e.tar.gz
dotfiles-guix-141e111a489ce91fac611537f6b718a57f556c4e.tar.bz2
dotfiles-guix-141e111a489ce91fac611537f6b718a57f556c4e.zip
update repo path resolution in scripts
Diffstat (limited to 'scripts/reconfigure-system')
-rwxr-xr-xscripts/reconfigure-system5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/reconfigure-system b/scripts/reconfigure-system
index 3d378f3..19792d1 100755
--- a/scripts/reconfigure-system
+++ b/scripts/reconfigure-system
@@ -1,3 +1,4 @@
#!/bin/sh
-repo="$HOME/.config/guix"
-sudo -E guix-retry guix system -L "$repo/modules" reconfigure "$repo/systems/$(hostname).scm"
+retry="$(dirname $0)/guix-retry"
+repo="$(realpath "$(dirname $0)/..")"
+sudo -E "$retry" guix system -L "$repo/modules" reconfigure "$repo/systems/$(hostname).scm"