nixos-config/modules/auto-update.nix
2020-12-28 23:05:45 -05:00

11 lines
167 B
Nix

{ ... }:
{
system.autoUpgrade = {
enable = true;
allowReboot = true;
};
nix.gc = {
automatic = true;
options = "--delete-older-than 30d";
};
}