set autoUpgrade to update nixpkgs when rebuilding

This commit is contained in:
Evie Litherland-Smith 2024-02-17 13:25:51 +00:00
parent 3e3e6d96b0
commit f7306efa47
2 changed files with 7 additions and 1 deletions

View file

@ -136,7 +136,12 @@
autoUpgrade = { autoUpgrade = {
enable = true; enable = true;
flake = "git+${flakeURL}"; flake = "git+${flakeURL}";
dates = "02:30"; flags = [
"--update-input"
"nixpkgs"
"-L" # print build logs
];
dates = "02:00";
}; };
}; };
networking = { networking = {

View file

@ -1,6 +1,7 @@
{...}: { {...}: {
users.mutableUsers = false; users.mutableUsers = false;
system.autoUpgrade = { system.autoUpgrade = {
randomizedDelaySec = "15min";
allowReboot = true; allowReboot = true;
rebootWindow = { rebootWindow = {
lower = "02:00"; lower = "02:00";