From 0353e44e1f9a70286c827597d5c198a31dc0a75a Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 14 Jul 2024 18:19:05 -0400 Subject: [PATCH] switch to latest generation on autoupgrade (#29) * hosts/common: switch on autoupgrade * hosts/common: adjust upgrade times * format fix * flake: update to latest nixhw * hosts/common: set explicitly to persistent --- flake.lock | 6 +++--- hosts/common.nix | 14 ++++++++------ 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 4a89585d..08799be9 100644 --- a/flake.lock +++ b/flake.lock @@ -318,11 +318,11 @@ ] }, "locked": { - "lastModified": 1720619751, - "narHash": "sha256-A6/7nXOW0UsrFu/IYqVmTMdkm5UjFJUDB4xpJvM5UvQ=", + "lastModified": 1720994659, + "narHash": "sha256-nN7sFe3tHG0xget7YYEErCx+kg4PqOnPAe8p8Pqg+ms=", "owner": "alyraffauf", "repo": "nixhw", - "rev": "5b22cdd5f53c88b98dc993c8d4578182aef8877f", + "rev": "d308ee6dfb9a46ab75b0e725b636f2c2846fc607", "type": "github" }, "original": { diff --git a/hosts/common.nix b/hosts/common.nix index 48a9dbab..daa78ccb 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -159,15 +159,17 @@ }; system.autoUpgrade = { - allowReboot = true; - dates = "04:00"; - randomizedDelaySec = "20min"; enable = true; + allowReboot = true; + dates = "02:00"; flake = "github:alyraffauf/nixcfg"; - operation = "boot"; + operation = "switch"; + persistent = true; + randomizedDelaySec = "30min"; + rebootWindow = { - lower = "02:00"; - upper = "05:00"; + lower = "04:00"; + upper = "06:00"; }; };