nixos/hosts/modules/auto-upgrade.nix
2024-08-19 20:32:10 +02:00

10 lines
244 B
Nix

{ config, ... }: {
system.autoUpgrade = {
enable = config.var.autoUpgrade;
dates = "04:00";
flake = "${config.var.configDirectory}";
flags = [ "--update-input" "nixpkgs" "--commit-lock-file" ];
allowReboot = false;
};
}