nix-configs/modules/common/nix.nix

22 lines
520 B
Nix
Raw Normal View History

2024-04-27 22:10:36 -04:00
{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"; };
2024-04-27 22:10:36 -04:00
};
}