diff --git a/hosts/Dimaga/default.nix b/hosts/Dimaga/default.nix index 054cde9..3c943e6 100644 --- a/hosts/Dimaga/default.nix +++ b/hosts/Dimaga/default.nix @@ -110,7 +110,7 @@ in ]; # Change how long old generations are kept for. - retentionPeriod = "monthly"; + retentionPeriod = "30d"; services = { acme = { diff --git a/modules/services/autoupgrade.nix b/modules/services/autoupgrade.nix index d1e162e..4869951 100644 --- a/modules/services/autoupgrade.nix +++ b/modules/services/autoupgrade.nix @@ -99,9 +99,9 @@ in cd ${cfg.configDir} # Make sure we're up-to-date echo "Pulling the latest version..." - git pull --recurse-submodules - nix flake update --commit-lock-file - git push + sudo -u ${cfg.user} git pull --recurse-submodules + sudo -u ${cfg.user} nix flake update --commit-lock-file + sudo -u ${cfg.user} git push ''; };