tweak: merge auto-upgrade.nix into automatic-upgrades.nix (gc 30d, optimise)
This commit is contained in:
1 parent
33aaa9ec5b
commit
9890583d8a
3 files changed
+2
-14
No files matched your search
@@ -1,13 +0,0 @@
|
|||||||
{ 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";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -4,6 +4,8 @@
|
|||||||
# Enable automatic garbage collection (prevents /boot or / filling up)
|
# Enable automatic garbage collection (prevents /boot or / filling up)
|
||||||
nix.gc.automatic = true;
|
nix.gc.automatic = true;
|
||||||
nix.gc.dates = "03:00"; # run GC at 03:00 daily
|
nix.gc.dates = "03:00"; # run GC at 03:00 daily
|
||||||
|
nix.gc.options = "--delete-older-than 30d"; # drop generations older than 30 days
|
||||||
|
nix.optimise.automatic = true; # hard-link identical store files
|
||||||
|
|
||||||
# This host has no configuration.nix: point <nixos-config> at master.nix,
|
# This host has no configuration.nix: point <nixos-config> at master.nix,
|
||||||
# otherwise nixos-upgrade.service (and plain nixos-rebuild) cannot find the config.
|
# otherwise nixos-upgrade.service (and plain nixos-rebuild) cannot find the config.
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ in
|
|||||||
./prometheus.nix
|
./prometheus.nix
|
||||||
./cron.nix
|
./cron.nix
|
||||||
./fde-lock.nix
|
./fde-lock.nix
|
||||||
#./auto-upgrade.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|||||||
Reference in new issue
Block a user