From e4857f19954dcafc6b50f2e85c0f00a876d45079 Mon Sep 17 00:00:00 2001 From: Chris Dombroski Date: Fri, 3 May 2024 14:44:49 -0400 Subject: [PATCH] Temporarily prevent reboots during hdd test --- modules/common/nix.nix | 2 +- systems/smolboi/configuration.nix | 1 + systems/zeus/configuration.nix | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/common/nix.nix b/modules/common/nix.nix index 0963114..84a16d4 100644 --- a/modules/common/nix.nix +++ b/modules/common/nix.nix @@ -23,7 +23,7 @@ system.autoUpgrade = { enable = true; flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git"; - allowReboot = true; + allowReboot = lib.mkDefault true; rebootWindow = { lower = "02:00"; upper = "06:00"; }; }; } diff --git a/systems/smolboi/configuration.nix b/systems/smolboi/configuration.nix index edc06d3..140c809 100644 --- a/systems/smolboi/configuration.nix +++ b/systems/smolboi/configuration.nix @@ -161,6 +161,7 @@ "/home".options = [ "compress=lzo" "autodefrag" "discard=async" "defaults" ]; }; + system.autoUpgrade.allowReboot = false; system.stateVersion = "23.11"; # Did you read the comment? } diff --git a/systems/zeus/configuration.nix b/systems/zeus/configuration.nix index bb663af..e3c448c 100644 --- a/systems/zeus/configuration.nix +++ b/systems/zeus/configuration.nix @@ -261,6 +261,7 @@ services.zfs.zed.enableMail = false; system.stateVersion = "23.11"; # Did you read the comment? + system.autoUpgrade.allowReboot = false; zramSwap.enable = true; }