From 78cc02941fac4c829d0facfbc2f2ef2592a0087d Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Wed, 17 Aug 2022 20:42:50 -0700 Subject: [PATCH] prevent auto-updating for server, networked machines --- nix/deployments/nixops.nix | 5 +++++ nix/system/xps11/configuration.nix | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nix/deployments/nixops.nix b/nix/deployments/nixops.nix index 3a4ec72..82d6c27 100644 --- a/nix/deployments/nixops.nix +++ b/nix/deployments/nixops.nix @@ -46,6 +46,11 @@ in SystemMaxUse=100M MaxFileSec=7day ''; + + # servers should not auto-upgrade; it leads to strange behavior when they + # reboot, because of creating their own, new, generation outside of + # nixops management. + system.autoUpgrade.enable = false; }; server = diff --git a/nix/system/xps11/configuration.nix b/nix/system/xps11/configuration.nix index 90837fa..65f3acb 100644 --- a/nix/system/xps11/configuration.nix +++ b/nix/system/xps11/configuration.nix @@ -104,5 +104,4 @@ # servers. You should change this only after NixOS release notes say you # should. system.stateVersion = "20.03"; # Did you read the comment? - system.autoUpgrade.enable = true; }