X-Git-Url: http://git.scottworley.com/auto-upgrade-with-pinch/blobdiff_plain/d8537205b9696e3b76bc8cad98966e52f1ab626f..8569b9651b5cbfc994362820a9fe298badd40068:/modules/auto-upgrade.nix diff --git a/modules/auto-upgrade.nix b/modules/auto-upgrade.nix index 1facaba..b493ac0 100644 --- a/modules/auto-upgrade.nix +++ b/modules/auto-upgrade.nix @@ -64,6 +64,12 @@ in { script = '' set -e + + # Chill for awhile before applying updates. If applying an update + # badly breaks things, we want a window in which an operator can + # intervene either to fix the problem or disable automatic updates. + sleep 2h + ( cd /etc/nixos ${pkgs.keyedgit cfg.key}/bin/git pull --ff-only --verify-signatures