From f86c63fc422724c0218d528c1d4e5cecf777ff49 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Mon, 23 Feb 2026 21:21:00 -0500 Subject: [PATCH 1/3] Enable auto-reboot for nixos upgrades Fixes #44 --- nixos/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/default.nix b/nixos/default.nix index 8d71b85..5d081c5 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -78,6 +78,7 @@ in dates = lib.mkDefault "Sat 03:00"; randomizedDelaySec = "45min"; persistent = true; + allowReboot = true; }; time.timeZone = "America/New_York"; From 1e34ba959bf9715385efcb570a843efe0d3ac94d Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Mon, 23 Feb 2026 21:33:25 -0500 Subject: [PATCH 2/3] Limit window for auto-reboots --- nixos/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/default.nix b/nixos/default.nix index 5d081c5..8180e7e 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -79,6 +79,10 @@ in randomizedDelaySec = "45min"; persistent = true; allowReboot = true; + rebootWindow = { + lower = "01:00"; + upper = "05:00"; + }; }; time.timeZone = "America/New_York"; From 4ffc7db985a016b63d6c5b6cd06b08a2f66dd959 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Mon, 23 Feb 2026 21:39:14 -0500 Subject: [PATCH 3/3] Adjust time for upgrade for cache --- nixos/cachevm/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nixos/cachevm/default.nix b/nixos/cachevm/default.nix index a69eeab..7a4c1f0 100644 --- a/nixos/cachevm/default.nix +++ b/nixos/cachevm/default.nix @@ -79,9 +79,10 @@ in 8080 ]; - # auto-update cachevm on a separate schedule so that it doesn't clash with - # machines that use the cache for their auto-updates. - system.autoUpgrade.dates = lib.mkForce "Sun 06:00"; + # Keep cachevm upgrades on a separate schedule so they don't clash with + # machines that use this cache for their own auto-updates. + # Run inside the global reboot window (01:00-05:00). + system.autoUpgrade.dates = lib.mkForce "Sun 01:00"; systemd.services.atticd.unitConfig.RequiresMountsFor = "/cache"; }