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,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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue