nixos/autoUpgrade: add --refresh when using flakes

otherwise the cache might delay updates quite a bit
This commit is contained in:
Jörg Thalheim 2024-08-26 12:02:24 +02:00
parent edcb325fc1
commit f40cd1bfe0

View File

@ -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";