Autoupgrade is not working with colmena
This commit is contained in:
parent
ab86d3e6a2
commit
b48e25aa7d
1 changed files with 14 additions and 7 deletions
|
|
@ -6,21 +6,28 @@ in
|
|||
options.my.utils.commons = {
|
||||
enable = lib.mkEnableOption "Enable commons stuff that are always nice to have";
|
||||
|
||||
allowReboot = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
description = config.system.autoUpgrade.allowReboot;
|
||||
};
|
||||
autoupgrade = {
|
||||
|
||||
enable = lib.mkEnableOption "Enable auto upgrade";
|
||||
|
||||
allowReboot = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
description = config.system.autoUpgrade.allowReboot;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
time.timeZone = "Europe/Rome";
|
||||
|
||||
# Auto update
|
||||
system.autoUpgrade = {
|
||||
system.autoUpgrade = lib.mkIf cfg.autoupgrade.enable {
|
||||
enable = true;
|
||||
randomizedDelaySec = "10min";
|
||||
allowReboot = cfg.allowReboot;
|
||||
allowReboot = cfg.autoupgrade.allowReboot;
|
||||
};
|
||||
|
||||
nix = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue