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:
parent
db4c8c278d
commit
0a83529d12
|
@ -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";
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue