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 = {
enable = true;
flake = "git+${flakeURL}";
dates = "02:30";
flags = [
"--update-input"
"nixpkgs"
"-L" # print build logs
];
dates = "02:00";
};
};
networking = {

View file

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