nixos-config/modules/auto-update.nix
2020-09-24 01:45:48 -04:00

11 lines
181 B
Nix

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