prevent auto-updating for server, networked machines

This commit is contained in:
Haak Saxberg 2022-08-17 20:42:50 -07:00
parent 81571ae7f3
commit 78cc02941f
2 changed files with 5 additions and 1 deletions

View file

@ -46,6 +46,11 @@ in
SystemMaxUse=100M SystemMaxUse=100M
MaxFileSec=7day MaxFileSec=7day
''; '';
# servers should not auto-upgrade; it leads to strange behavior when they
# reboot, because of creating their own, new, generation outside of
# nixops management.
system.autoUpgrade.enable = false;
}; };
server = server =

View file

@ -104,5 +104,4 @@
# servers. You should change this only after NixOS release notes say you # servers. You should change this only after NixOS release notes say you
# should. # should.
system.stateVersion = "20.03"; # Did you read the comment? system.stateVersion = "20.03"; # Did you read the comment?
system.autoUpgrade.enable = true;
} }