diff --git a/configurations/home/srid@zest.nix b/configurations/home/srid@zest.nix index a10991f..81aba0b 100644 --- a/configurations/home/srid@zest.nix +++ b/configurations/home/srid@zest.nix @@ -16,8 +16,8 @@ in "${homeMod}/services/obsidian.nix" # Remote builders - # "${homeMod}/nix/buildMachines" - # "${homeMod}/nix/buildMachines/sincereintent.nix" + "${homeMod}/nix/buildMachines" + "${homeMod}/nix/buildMachines/pureintent.nix" ]; home.username = "srid"; diff --git a/modules/home/nix/buildMachines/pureintent.nix b/modules/home/nix/buildMachines/pureintent.nix new file mode 100644 index 0000000..76b293a --- /dev/null +++ b/modules/home/nix/buildMachines/pureintent.nix @@ -0,0 +1,23 @@ +{ ... }: +{ + # Configure remote building to pureintent (NixOS x86_64-linux builder) + nix.buildMachines = [ + { + hostName = "pureintent"; + sshUser = "srid"; + systems = [ "x86_64-linux" ]; + protocol = "ssh-ng"; + + maxJobs = 16; + speedFactor = 2; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + mandatoryFeatures = [ ]; + + sshKey = "/Users/srid/.ssh/nix-remote-builder"; + + # Run on the remote machine: + # , base64 -w0 /etc/ssh/ssh_host_ed25519_key.pub + publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSU9LZlI3R253cklWZW1QLzFrbmE4amJvTlJlZ0lzYVZMNm1UaTNvWHdNZFUgcm9vdEBuaXhvcwo="; + } + ]; +}