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";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ in
|
||||
./user/stormwind/master.nix
|
||||
./sshd.nix
|
||||
./tailscale.nix
|
||||
./auto-upgrade.nix
|
||||
];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
|
||||
Reference in New Issue
Block a user