aboutsummaryrefslogtreecommitdiff
path: root/profiles/nix
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/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}
+ '';
+}