From 8e62b79cb811d526ae9eda7bc466e9747ee17268 Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.dev> Date: Mon, 26 Feb 2024 16:41:32 +0000 Subject: [PATCH] update autoUpgrade settings https://discourse.nixos.org/t/best-practices-for-auto-upgrades-of-flake-enabled-nixos-systems/31255/2 --- system/nixos/configuration.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/system/nixos/configuration.nix b/system/nixos/configuration.nix index 0f58bf0c..fb9fb9fd 100644 --- a/system/nixos/configuration.nix +++ b/system/nixos/configuration.nix @@ -243,9 +243,16 @@ in { }; system.autoUpgrade = { - allowReboot = true; enable = true; - flake = "nixedo"; + flake = inputs.self.outPath; + flags = [ + "--update-input" + "nixpkgs" + "--no-write-lock-file" + "-L" # print build logs + ]; + dates = "08:00"; + randomizedDelaySec = "45min"; }; services.gvfs.enable = true;