From 385d77975a0869b828fead35cf21979b9fc263c2 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 25 May 2024 07:03:36 +0100 Subject: [PATCH] Disable autoUpgrade for regular machines, keep for server only --- configuration/Legion.nix | 4 +++- configuration/default.nix | 9 +-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/configuration/Legion.nix b/configuration/Legion.nix index f0c85aed..087b57bd 100644 --- a/configuration/Legion.nix +++ b/configuration/Legion.nix @@ -1,4 +1,4 @@ -{...}: { +{config, ...}: { imports = [ ../services/caddy.nix ../services/forgejo.nix @@ -16,6 +16,8 @@ }; users.mutableUsers = false; system.autoUpgrade = { + enable = true; + flake = "git+${config.nix.registry.my-nixos.to.url}"; dates = "02:00"; allowReboot = true; rebootWindow = { diff --git a/configuration/default.nix b/configuration/default.nix index 12379287..fced7b40 100644 --- a/configuration/default.nix +++ b/configuration/default.nix @@ -30,14 +30,7 @@ ''; }; nixpkgs.config.allowUnfree = true; - system = { - autoUpgrade = { - enable = true; - flake = "git+${config.nix.registry.my-nixos.to.url}"; - allowReboot = lib.mkDefault false; - }; - stateVersion = "23.05"; - }; + system.stateVersion = "23.05"; boot.loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true;