From 49c4a93fa82468acadc502577188f7bc3d6459cf Mon Sep 17 00:00:00 2001 From: rope Date: Sun, 17 May 2026 21:01:00 +0100 Subject: [PATCH] gaming: force all nix builds to remote media server max-jobs = 0 sends every build to nordhammer.it instead of compiling locally, so nixos updates never compete with games for resources. builders-use-substitutes lets the server pull from binary caches directly. Co-Authored-By: Claude Sonnet 4.6 --- hosts/FredOS-Gaming.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hosts/FredOS-Gaming.nix b/hosts/FredOS-Gaming.nix index 58bc41e..e9d1223 100644 --- a/hosts/FredOS-Gaming.nix +++ b/hosts/FredOS-Gaming.nix @@ -25,6 +25,13 @@ woeusb ]; + # Force all builds off the gaming PC onto the media server so nix updates + # never compete with games for CPU/RAM. Pairs with the distributed build + # config in common.nix. builders-use-substitutes lets the server pull from + # binary caches directly rather than re-uploading through this machine. + nix.settings.max-jobs = 0; + nix.settings.builders-use-substitutes = true; + programs.nix-ld.enable = true; programs.nix-ld.libraries = with pkgs; [ stdenv.cc.cc.lib # libstdc++.so.6 — needed by VSCodium extension native addons (e.g. sqlite3 in Continue)