diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index 853b49f..ed4cd81 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -6,6 +6,7 @@ ./nfs-client.nix ./nix-ld.nix ./printers.nix + ./remoteBuilder.nix ./ssh-server.nix ]; diff --git a/hosts/desktop/remoteBuilder.nix b/hosts/desktop/remoteBuilder.nix new file mode 100644 index 0000000..4171770 --- /dev/null +++ b/hosts/desktop/remoteBuilder.nix @@ -0,0 +1,22 @@ +{ ... }: + +{ + nix.buildMachines = [ { + hostName = "Anton"; + sshUser = "willifan"; + system = "x86_64-linux"; + protocol = "ssh"; + # if the builder supports building for multiple architectures, + # replace the previous line by, e.g. + # systems = ["x86_64-linux" "aarch64-linux"]; + maxJobs = 1; + speedFactor = 2; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + mandatoryFeatures = [ ]; + }]; + nix.distributedBuilds = true; + # optional, useful when the builder has a faster internet connection than yours + nix.extraOptions = '' + builders-use-substitutes = true + ''; +}