aboutsummaryrefslogtreecommitdiff
path: root/profiles/nix/remote-builder.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-08-12 10:18:59 -0700
committerFranck Cuny <franck@fcuny.net>2025-08-12 10:18:59 -0700
commit2fd25ace93bb7057ff5e0044907b0f3b431883a8 (patch)
tree0718521ea133e817ab0360d9fff342243f56659e /profiles/nix/remote-builder.nix
parentadd profiles for security, firewalls, and users (diff)
downloadinfra-2fd25ace93bb7057ff5e0044907b0f3b431883a8.tar.gz
add profiles for darwin and remote builder
Diffstat (limited to 'profiles/nix/remote-builder.nix')
-rw-r--r--profiles/nix/remote-builder.nix32
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}
+ '';
+}