hosts: add autoupdate with git flake

This commit is contained in:
Kabbone 2024-03-24 21:28:00 +01:00
parent f3388b4dbf
commit db3a1d9ee9
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY
2 changed files with 21 additions and 8 deletions

View File

@ -190,10 +190,17 @@
};
system = { # NixOS settings
# autoUpgrade = { # Allow auto update
# enable = true;
autoUpgrade = { # Allow auto update
enable = true;
flake = "git+https://git.kabtop.de/Kabbone/nixos-config";
randomizedDelaySec = "5m";
allowReboot = true;
reboot.Window = {
lower = "02:00";
upper = "05:00";
};
# channel = "https://nixos.org/channels/nixos-unstable";
# };
};
stateVersion = "23.05";
};
}

View File

@ -138,10 +138,16 @@
};
system = { # NixOS settings
# autoUpgrade = { # Allow auto update
# enable = true;
# channel = "https://nixos.org/channels/nixos-unstable";
# };
stateVersion = "22.05";
autoUpgrade = { # Allow auto update
enable = true;
flake = "git+https://git.kabtop.de/Kabbone/nixos-config";
randomizedDelaySec = "5m";
allowReboot = true;
reboot.Window = {
lower = "02:00";
upper = "05:00";
};
};
stateVersion = "23.05";
};
}