nix-configs/modules/common/nix.nix
cdombroski 5ebb95135a Allow automatic reboots
Only between 2 and 6 am
2024-04-29 23:09:23 -04:00

21 lines
520 B
Nix

{pkgs, ...}: {
environment.systemPackages = with pkgs; [
git
nix-output-monitor
];
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
gc = {
automatic = true;
options = "--delete-older-than 30d";
dates = "weekly";
};
optimise.automatic = true;
};
system.autoUpgrade = {
enable = true;
flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git";
allowReboot = true;
rebootWindow = { lower = "02:00"; upper = "06:00"; };
};
}