system.autoUpgrade does not need --refresh

Although there is `tarball-ttl` which specifies the TTL for the cache,
the default is one hour, which is enough for updates.

https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-tarball-ttl

So `--refresh` is only needed for interactive updates.

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-03-07 09:57:13 +01:00
parent 7ec319bf22
commit 61a5a0b458

View file

@ -130,7 +130,6 @@ in
system.autoUpgrade = {
flags = [
"--refresh"
"--update-input"
"nixpkgs"
"--update-input"