summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-28 18:27:52 +0000
committertv <tv@krebsco.de>2026-11-28 18:27:52 +0000
commit584b4584ca12b269ff3b88538db781d6f99cd34f (patch)
tree672518eb0371ad0455fed64794d81daa3100fabd
parent8ec27ec67a020e9fbe5286a1e70984c6ef624bd1 (diff)
zu: offer builds a ccache
In /var/cache/ccache, which builds see in their sandbox; a build has to ask for it, by a stdenv with ccache.
-rw-r--r--systems/zu/config.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/systems/zu/config.nix b/systems/zu/config.nix
index 6d164748..50faf4bf 100644
--- a/systems/zu/config.nix
+++ b/systems/zu/config.nix
@@ -60,6 +60,9 @@
nix.daemonCPUSchedPolicy = "batch";
nix.daemonIOSchedPriority = 1;
+ nix.settings.extra-sandbox-paths = [ config.programs.ccache.cacheDir ];
+
+ programs.ccache.enable = true;
services.logind.settings.Login.HandleHibernateKey = "ignore";
services.logind.settings.Login.HandleLidSwitch = "ignore";