From f40cd1bfe049282b5b07d789c82ef8db3740ce4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 26 Aug 2024 12:02:24 +0200 Subject: [PATCH] nixos/autoUpgrade: add --refresh when using flakes otherwise the cache might delay updates quite a bit --- nixos/modules/tasks/auto-upgrade.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/tasks/auto-upgrade.nix b/nixos/modules/tasks/auto-upgrade.nix index e0ee31f716aa..f5747dda55f4 100644 --- a/nixos/modules/tasks/auto-upgrade.nix +++ b/nixos/modules/tasks/auto-upgrade.nix @@ -181,7 +181,7 @@ in { "nixpkgs=${cfg.channel}/nixexprs.tar.xz" ] else - [ "--flake ${cfg.flake}" ]); + [ "--refresh" "--flake ${cfg.flake}" ]); systemd.services.nixos-upgrade = { description = "NixOS Upgrade";