From f7306efa4745c487570c4890d9e52d97b3b72b55 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 17 Feb 2024 13:25:51 +0000 Subject: [PATCH] set autoUpgrade to update nixpkgs when rebuilding --- flake.nix | 7 ++++++- hosts/Legion/configuration.nix | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index bbffbe22..18e8dd21 100644 --- a/flake.nix +++ b/flake.nix @@ -136,7 +136,12 @@ autoUpgrade = { enable = true; flake = "git+${flakeURL}"; - dates = "02:30"; + flags = [ + "--update-input" + "nixpkgs" + "-L" # print build logs + ]; + dates = "02:00"; }; }; networking = { diff --git a/hosts/Legion/configuration.nix b/hosts/Legion/configuration.nix index 524bd502..51c2019f 100644 --- a/hosts/Legion/configuration.nix +++ b/hosts/Legion/configuration.nix @@ -1,6 +1,7 @@ {...}: { users.mutableUsers = false; system.autoUpgrade = { + randomizedDelaySec = "15min"; allowReboot = true; rebootWindow = { lower = "02:00";