From 0720bb4c2159b50c285f7147e65a0f4e609f3e41 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 25 Jun 2024 06:50:05 +0100 Subject: [PATCH] Disable reboot for autoUpgrade --- configuration/Legion.nix | 9 +-------- configuration/default.nix | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/configuration/Legion.nix b/configuration/Legion.nix index 6e2aa886..df4d6c6f 100644 --- a/configuration/Legion.nix +++ b/configuration/Legion.nix @@ -15,12 +15,5 @@ efi.canTouchEfiVariables = true; }; users.mutableUsers = false; - system.autoUpgrade = { - operation = "switch"; - allowReboot = true; - rebootWindow = { - lower = "01:00"; - upper = "05:00"; - }; - }; + system.autoUpgrade.operation = "switch"; } diff --git a/configuration/default.nix b/configuration/default.nix index f2a220d5..698f4816 100644 --- a/configuration/default.nix +++ b/configuration/default.nix @@ -32,10 +32,12 @@ autoUpgrade = { enable = true; persistent = true; + allowReboot = false; flake = "git+${config.nix.registry.my-nixos.to.url}"; dates = "02:00"; randomizedDelaySec = "45min"; flags = [ + "--accept-flake-config" "--option" "extra-binary-caches" "https://nix.xenia.me.uk"