From: Scott Worley Date: Wed, 15 Apr 2020 00:50:46 +0000 (-0700) Subject: Safety-hatch: Initial delay X-Git-Url: http://git.scottworley.com/auto-upgrade-with-pinch/commitdiff_plain/8569b9651b5cbfc994362820a9fe298badd40068?ds=inline Safety-hatch: Initial delay --- 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