]> git.scottworley.com Git - auto-upgrade-with-pinch/commitdiff
Safety-hatch: Initial delay
authorScott Worley <scottworley@scottworley.com>
Wed, 15 Apr 2020 00:50:46 +0000 (17:50 -0700)
committerScott Worley <scottworley@scottworley.com>
Mon, 18 May 2020 18:48:22 +0000 (11:48 -0700)
modules/auto-upgrade.nix

index 1facabab99b0cfbc8263af05f61c9734b1e15f8b..b493ac00d0db5478fe782ce065a934962779bb47 100644 (file)
@@ -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