add automatic system upgrades
This commit is contained in:
13
auto-upgrade.nix
Normal file
13
auto-upgrade.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
# Rebuild once a day to automatically apply security patches
|
||||
system.autoUpgrade.enable = true;
|
||||
nix.optimise.automatic = true;
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "daily";
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user