fix(deploy): add --refresh flag to auto-upgrade
Without --refresh, nix caches the flake evaluation and nixos-upgrade may not pull the latest commits. The --refresh flag forces re-fetching the git repo on every upgrade. Only affects flake evaluation cache — /var/lib data is untouched. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
54c3f7bd8d
commit
366869a8a4
1 changed files with 1 additions and 0 deletions
|
|
@ -148,6 +148,7 @@
|
|||
system.autoUpgrade = {
|
||||
enable = true;
|
||||
flake = "git+ssh://forgejo@git.atitlan.io/aiolabs/lamassu-next.git#${machineModel}-installed";
|
||||
flags = [ "--refresh" ];
|
||||
dates = "04:00"; # daily at 4am
|
||||
allowReboot = false;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue