Autoupgrade is not working with colmena

This commit is contained in:
pazpi 2025-01-08 14:33:05 +01:00
parent ab86d3e6a2
commit b48e25aa7d

View file

@ -6,6 +6,10 @@ in
options.my.utils.commons = { options.my.utils.commons = {
enable = lib.mkEnableOption "Enable commons stuff that are always nice to have"; enable = lib.mkEnableOption "Enable commons stuff that are always nice to have";
autoupgrade = {
enable = lib.mkEnableOption "Enable auto upgrade";
allowReboot = lib.mkOption { allowReboot = lib.mkOption {
default = false; default = false;
type = lib.types.bool; type = lib.types.bool;
@ -13,14 +17,17 @@ in
}; };
}; };
};
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
time.timeZone = "Europe/Rome";
# Auto update # Auto update
system.autoUpgrade = { system.autoUpgrade = lib.mkIf cfg.autoupgrade.enable {
enable = true; enable = true;
randomizedDelaySec = "10min"; randomizedDelaySec = "10min";
allowReboot = cfg.allowReboot; allowReboot = cfg.autoupgrade.allowReboot;
}; };
nix = { nix = {