diff options
Diffstat (limited to 'profiles')
| -rw-r--r-- | profiles/remote-builder.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/profiles/remote-builder.nix b/profiles/remote-builder.nix new file mode 100644 index 0000000..cc7751f --- /dev/null +++ b/profiles/remote-builder.nix @@ -0,0 +1,34 @@ +{ ... }: +{ + nix.buildMachines = [ + { + hostName = "vm-synology"; + sshUser = "builder"; + + # 'ssh-ng' is faster if both machines are NixOS but falls flat if the + # machine Nix will attempt a connection to is not NixOS. In such a case + # you must use 'ssh' instead. + protocol = "ssh-ng"; + + # Systems for which builds will be offloaded. + systems = [ + "x86_64-linux" + ]; + + # Default is 1 but may keep the builder idle in between builds + maxJobs = 1; + + supportedFeatures = [ + "nixos-test" + ]; + } + ]; + + nix.distributedBuilds = true; + + programs.ssh.extraConfig = '' + Host builder + User builder + HostName vm-synology + ''; +} |
