From ab75a0a599e3a11d99dbe1cc4d1dacda18412574 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 26 Feb 2023 17:55:25 -0300 Subject: bin/reconfigure: Use current version of {home,system}.scm files --- bin/reconfigure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') 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 | -- cgit v1.2.3