xin/system/update.nix
2022-08-25 12:21:35 -06:00

21 lines
370 B
Nix

{ config, lib, ... }:
with lib; {
options = {
autoUpdate = {
enable = mkOption {
description = "Enable Auto Update";
default = true;
example = true;
type = lib.types.bool;
};
};
};
config = mkIf config.autoUpdate.enable {
system.autoUpgrade = {
enable = true;
allowReboot = false;
};
};
}