diff options
-rwxr-xr-x | bin/reconfigure | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reconfigure b/bin/reconfigure index 70911ba..7876acf 100755 --- a/bin/reconfigure +++ b/bin/reconfigure @@ -64,16 +64,16 @@ shift $((OPTIND - 1)) HOSTNAME="$(hostname)" -if [ -e /run/current-system/configuration.scm ]; then +if [ -e "$XDG_CONFIG_HOME"/guix/system.scm ]; then pass show "$(hostname)"/andreh | head -n1 | - sudo -ES guix system -v3 reconfigure /run/current-system/configuration.scm + sudo -ES guix system -v3 reconfigure "$XDG_CONFIG_HOME"/guix/system.scm fi TWO_HOURS='7200' timeout "$TWO_HOURS" \ - guix home -v3 reconfigure ~/.guix-home/configuration.scm + guix home -v3 reconfigure "$XDG_CONFIG_HOME"/guix/home.scm if [ -e /etc/nixos/configuration.nix ]; then pass show "$HOSTNAME"/andreh | |