From 162c76c46d91d55aece3da5b09b003886c053ac0 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 8 Mar 2024 08:03:03 +0000 Subject: [PATCH] Disable autoUpgrade for regular machines, only keep for server --- flake.nix | 15 +-------------- hosts/Legion/configuration.nix | 8 ++++++++ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/flake.nix b/flake.nix index 4c0881d5..002db950 100644 --- a/flake.nix +++ b/flake.nix @@ -93,20 +93,7 @@ sansSerif = font "aile"; monospace = font "nerdfont"; }; - system = { - inherit stateVersion; - autoUpgrade = { - enable = true; - flake = lib.mkDefault self.outPath; - flags = [ - "--update-input" - "nixpkgs" - "--no-write-lock-file" - "-L" # print build logs - ]; - dates = "02:00"; - }; - }; + system = {inherit stateVersion;}; users = { defaultUserShell = pkgs.${defaultUserShell}; users = let diff --git a/hosts/Legion/configuration.nix b/hosts/Legion/configuration.nix index 9777fb40..acfb4f9d 100644 --- a/hosts/Legion/configuration.nix +++ b/hosts/Legion/configuration.nix @@ -1,7 +1,15 @@ {config, ...}: { users.mutableUsers = false; system.autoUpgrade = { + enable = true; flake = "git+${config.nix.registry.nixos.to.url}"; + flags = [ + "--update-input" + "nixpkgs" + "--no-write-lock-file" + "-L" # print build logs + ]; + dates = "02:00"; randomizedDelaySec = "15min"; allowReboot = true; rebootWindow = {