diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-03 19:35:48 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-03 19:35:48 -0700 |
| commit | 4b623086639448a23842526c1dcb3a9e60bf4590 (patch) | |
| tree | 46cbcad90dd9b9e1fb7e651861d075abb61adaf0 /profiles/remote-builder.nix | |
| parent | add a home-manager module for 1password (diff) | |
| download | infra-4b623086639448a23842526c1dcb3a9e60bf4590.tar.gz | |
attempt at configuring the remote builder on the VM
Diffstat (limited to 'profiles/remote-builder.nix')
| -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 + ''; +} |
