Allow for git pull before auto-upgrade

This commit is contained in:
fruchti 2023-03-09 15:24:22 +01:00
parent 99ed3884f8
commit b756893fa5
2 changed files with 48 additions and 11 deletions

View file

@ -88,9 +88,14 @@ in
# accidentally delete configuration.nix.
# system.copySystemConfiguration = true;
system.autoUpgrade.enable = true;
system.autoUpgrade.allowReboot = true;
system.autoUpgrade.sendEmail = true;
system.autoUpgrade = {
enable = true;
allowReboot = true;
sendEmail = true;
gitPull = true;
gitDeploymentKeyFile = "/secrets/ssh_id_gitea_nixos_configuration";
};
# systemd.services.nixos-upgrade.onFailure = lib.mkIf config.system.autoUpgrade.enable [ "status-email@%n.service" ];
services.btrfsScrub = {