diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-12 10:18:59 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-12 10:18:59 -0700 |
| commit | 2fd25ace93bb7057ff5e0044907b0f3b431883a8 (patch) | |
| tree | 0718521ea133e817ab0360d9fff342243f56659e /profiles/nix | |
| parent | add profiles for security, firewalls, and users (diff) | |
| download | infra-2fd25ace93bb7057ff5e0044907b0f3b431883a8.tar.gz | |
add profiles for darwin and remote builder
Diffstat (limited to 'profiles/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} + ''; +} |
