diff options
author | Freya Murphy <freya@freyacat.org> | 2024-12-12 19:15:02 -0500 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-12-12 19:15:02 -0500 |
commit | 141e111a489ce91fac611537f6b718a57f556c4e (patch) | |
tree | ca8078761af62502d053096a4f141abbee860323 /scripts/reconfigure-system | |
parent | build-installer script (diff) | |
download | dotfiles-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-x | scripts/reconfigure-system | 5 |
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" |