nixos-config/modules/auto-update.nix

12 lines
181 B
Nix
Raw Normal View History

2020-09-18 13:54:09 +00:00
{ config, pkgs, ... }:
{
2020-09-24 05:45:48 +00:00
system.autoUpgrade = {
enable = true;
allowReboot = true;
};
nix.gc = {
automatic = true;
options = "--delete-older-than 30d";
};
2020-09-18 13:54:09 +00:00
}