diff options
Diffstat (limited to 'profiles/nix/remote-builder.nix')
| -rw-r--r-- | profiles/nix/remote-builder.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/profiles/nix/remote-builder.nix b/profiles/nix/remote-builder.nix new file mode 100644 index 0000000..50d3e84 --- /dev/null +++ b/profiles/nix/remote-builder.nix @@ -0,0 +1,32 @@ +{ config, ... }: +{ + nix.buildMachines = [ + { + hostName = "builder"; + sshUser = "builder"; + + protocol = "ssh"; + + sshKey = config.age.secrets.ssh-remote-builder.path; + + systems = [ + "x86_64-linux" + ]; + + maxJobs = 1; + + supportedFeatures = [ + "nixos-test" + ]; + } + ]; + + nix.distributedBuilds = true; + + programs.ssh.extraConfig = '' + Host builder + User builder + HostName vm-synology + IdentityFile ${config.age.secrets.ssh-remote-builder.path} + ''; +} |
