Revert "Revert "Disable nix autoUpgrade for regular machines""

This reverts commit 3aabae7e6f.

autoUpgrade gets weird when network issues are involved, especially
relevant for laptops...

Yes I know I'm indecisive
This commit is contained in:
Evie Litherland-Smith 2023-12-20 07:49:22 +00:00
parent db4c8c278d
commit 0a83529d12
2 changed files with 5 additions and 10 deletions

View file

@ -4,7 +4,10 @@
{ lib, ... }: {
users.mutableUsers = false;
system.autoUpgrade = {
allowReboot = lib.mkForce true;
enable = true;
flake = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
dates = "02:30";
allowReboot = true;
rebootWindow = {
lower = "02:00";
upper = "05:00";

View file

@ -1,6 +1,4 @@
{ pkgs, ... }:
let flakeURL = "git+https://git.xenia.me.uk/xenia/nixos.git?ref=main";
in {
{ pkgs, ... }: {
networking = {
networkmanager.enable = true;
nameservers = [ "9.9.9.9" ];
@ -50,10 +48,4 @@ in {
LC_TIME = locale;
};
};
system.autoUpgrade = {
enable = true;
dates = "02:00";
allowReboot = false;
flake = flakeURL;
};
}