From 8569b9651b5cbfc994362820a9fe298badd40068 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 14 Apr 2020 17:50:46 -0700 Subject: [PATCH] Safety-hatch: Initial delay --- modules/auto-upgrade.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.44.1