From 53083fabce0d4fab55abc31f13dec93e81470b98 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 21 Jun 2023 23:02:34 -0500 Subject: [PATCH] Add cachix, proper buildMachines config --- modules/desktop/default.nix | 1 + modules/shared/default.nix | 14 +++++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 8d1383f..757c3c5 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -43,6 +43,7 @@ environment.systemPackages = with pkgs; [ android-tools bottom + cachix firefox git htop diff --git a/modules/shared/default.nix b/modules/shared/default.nix index 82956a5..32c7d34 100644 --- a/modules/shared/default.nix +++ b/modules/shared/default.nix @@ -13,8 +13,20 @@ }; }; + nix.buildMachines = [{ + hostName = "192.168.5.10"; + systems = [ "aarch64-linux" "x86_64-linux" ]; + protocol = "ssh"; + sshUser = "builder"; + sshKey = "${config.sops.secrets.builderKey.path}"; + maxJobs = 12; + speedFactor = 2; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + mandatoryFeatures = [ ]; + }]; + nix.distributedBuilds = true; + nix.extraOptions = '' - builders = ssh://builder@192.168.5.10?ssh-key=${config.sops.secrets.builderKey.path} builders-use-substitutes = false ''; }