summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2026-04-13 23:50:58 -0400
committerJoe Mou <dev@mou.fo>2026-04-15 18:50:14 -0400
commit9b90ccad7d828c083c37d179c391a0048e49cf02 (patch)
tree0408df82e919d71089f0653c3082b4e1b47aee2f
parentad46641b2913b46c6b01694d86470dd3b464e154 (diff)
elmo: Automatic GC
-rw-r--r--hostnix/elmo/system.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/hostnix/elmo/system.nix b/hostnix/elmo/system.nix
index c40313e..8630abc 100644
--- a/hostnix/elmo/system.nix
+++ b/hostnix/elmo/system.nix
@@ -1,7 +1,15 @@
{ config, pkgs, ... }:
{
+ nix.gc = {
+ automatic = true;
+ dates = "weekly";
+ options = "--delete-older-than 30d";
+ };
+ nix.settings.auto-optimise-store = true;
+
boot.loader.systemd-boot.enable = true;
+ boot.loader.systemd-boot.configurationLimit = 10;
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.useTmpfs = true;