diff options
-rw-r--r-- | src/infrastructure/guix/system.scm | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/infrastructure/guix/system.scm b/src/infrastructure/guix/system.scm index a6093a9..516e027 100644 --- a/src/infrastructure/guix/system.scm +++ b/src/infrastructure/guix/system.scm @@ -207,12 +207,10 @@ ARCHIVE_TAG="${1:-manual}" - export BORG_RSH="ssh -i $HOME/.ssh/id_rsa" - run() { set -x # shellcheck disable=2086 - sudo -E borg create \ + sudo -i borg create \ $VERBOSE_FLAGS \ --comment " $COMMENT" \ --stats \ @@ -236,8 +234,9 @@ fi } - run - exit $? + run || exit $? + + sudo -i borg check --verify-data --verbose "#) (define cronjob.sh #"- @@ -393,11 +392,11 @@ shift $((OPTIND - 1)) if [ "$UPDATE" = true ]; then - guix pull -v3 + sudo -i guix pull -v3 fi - sudo -E guix system -v3 reconfigure /etc/guix/system.scm + sudo -i guix system -v3 reconfigure /etc/guix/system.scm "#) (define with-email.sh #"- @@ -1669,7 +1668,7 @@ (name whoami) (comment "EuAndreh") (group "users") - (supplementary-groups '("wheel" "borg"))) + (supplementary-groups '("wheel"))) (user-account (name "git") (group "git") @@ -1682,8 +1681,6 @@ (append (list (user-group - (name "borg")) - (user-group (name "git"))) %base-groups)) (sudoers-file |