From 1d11ebd20ad3eeadd13af685961db520c9438297 Mon Sep 17 00:00:00 2001 From: mc-fucker Date: Tue, 2 Apr 2024 19:53:17 +0200 Subject: [PATCH] added nix remote build client --- modules/remotebuild/client.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/remotebuild/client.nix diff --git a/modules/remotebuild/client.nix b/modules/remotebuild/client.nix new file mode 100644 index 0000000..7a52006 --- /dev/null +++ b/modules/remotebuild/client.nix @@ -0,0 +1,20 @@ +{ ... }: +{ + + nix.buildMachines = + let + system = "x86_64-linux"; + protocol = "ssh-ng"; + sshUser = "nixremote"; + sshKey = "/root/.ssh/nixremote"; + supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ]; + in + [ { + #buildOptions ++ hostName = "mc7"; + inherit system protocol sshUser sshKey supportedFeatures; + hostName = "mc7"; + }]; + + nix.distributedBuilds = true; +} +# vim: set et ts=2 sw=2 ai: