summaryrefslogtreecommitdiff
path: root/scripts/reconfigure-system
diff options
context:
space:
mode:
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"