From 9d5ab7f7ec7f86eb17ebaf83b8ff6ba3467a3d35 Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Sun, 21 Jan 2024 11:04:41 +1000
Subject: [PATCH] build02: run optimise store weekly

---
 hosts/build02/configuration.nix | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hosts/build02/configuration.nix b/hosts/build02/configuration.nix
index a373eaa..f66e1c7 100644
--- a/hosts/build02/configuration.nix
+++ b/hosts/build02/configuration.nix
@@ -11,6 +11,12 @@
     inputs.self.nixosModules.disko-raid
   ];
 
+  # workaround for excessive inode usage on this host, `auto-optimise-store` isn't working?
+  nix.optimise = {
+    automatic = true;
+    dates = [ "weekly" ];
+  };
+
   nixCommunity.disko.raidLevel = 0; # more disk space, we don't have much state to restore anyway
 
   networking.hostName = "build02";