diff options
author | EuAndreh <eu@euandre.org> | 2023-02-26 17:55:25 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-02-26 17:55:29 -0300 |
commit | ab75a0a599e3a11d99dbe1cc4d1dacda18412574 (patch) | |
tree | 8b8da51c1b1e81aefc5651e307be35c3c5500633 /bin/reconfigure | |
parent | git mv bin/upgrade bin/reconfigure (diff) | |
download | dotfiles-ab75a0a599e3a11d99dbe1cc4d1dacda18412574.tar.gz dotfiles-ab75a0a599e3a11d99dbe1cc4d1dacda18412574.tar.xz |
bin/reconfigure: Use current version of {home,system}.scm files
Diffstat (limited to 'bin/reconfigure')
-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 | |