switch to latest generation on autoupgrade (#29)

* hosts/common: switch on autoupgrade

* hosts/common: adjust upgrade times

* format fix

* flake: update to latest nixhw

* hosts/common: set explicitly to persistent
This commit is contained in:
Aly Raffauf 2024-07-14 18:19:05 -04:00 committed by GitHub
parent b6b231df2f
commit 0353e44e1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 9 deletions

View file

@ -318,11 +318,11 @@
]
},
"locked": {
"lastModified": 1720619751,
"narHash": "sha256-A6/7nXOW0UsrFu/IYqVmTMdkm5UjFJUDB4xpJvM5UvQ=",
"lastModified": 1720994659,
"narHash": "sha256-nN7sFe3tHG0xget7YYEErCx+kg4PqOnPAe8p8Pqg+ms=",
"owner": "alyraffauf",
"repo": "nixhw",
"rev": "5b22cdd5f53c88b98dc993c8d4578182aef8877f",
"rev": "d308ee6dfb9a46ab75b0e725b636f2c2846fc607",
"type": "github"
},
"original": {

View file

@ -159,15 +159,17 @@
};
system.autoUpgrade = {
allowReboot = true;
dates = "04:00";
randomizedDelaySec = "20min";
enable = true;
allowReboot = true;
dates = "02:00";
flake = "github:alyraffauf/nixcfg";
operation = "boot";
operation = "switch";
persistent = true;
randomizedDelaySec = "30min";
rebootWindow = {
lower = "02:00";
upper = "05:00";
lower = "04:00";
upper = "06:00";
};
};