diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-11-02 14:20:57 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-11-02 14:20:57 -0800 |
| commit | 9fa94af7140afb7c9fcced8aa1fb20abb81c5955 (patch) | |
| tree | 74a2b33354d3cd15aa58fd7be7d33c8cc550c463 /profiles/remote-builder.nix | |
| parent | cleanup nixos related configurations (diff) | |
| download | infra-9fa94af7140afb7c9fcced8aa1fb20abb81c5955.tar.gz | |
add helpers to build remotely with nixos
Diffstat (limited to 'profiles/remote-builder.nix')
| -rw-r--r-- | profiles/remote-builder.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/profiles/remote-builder.nix b/profiles/remote-builder.nix new file mode 100644 index 0000000..3aa772f --- /dev/null +++ b/profiles/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 = 4; + + supportedFeatures = [ + "nixos-test" + ]; + } + ]; + + nix.distributedBuilds = true; + + programs.ssh.extraConfig = '' + Host builder + User builder + HostName rivendell + IdentityFile ${config.age.secrets.ssh-remote-builder.path} + ''; +} |
