aboutsummaryrefslogtreecommitdiff
path: root/profiles/remote-builder.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-11-02 14:20:57 -0800
committerFranck Cuny <franck@fcuny.net>2025-11-02 14:20:57 -0800
commit9fa94af7140afb7c9fcced8aa1fb20abb81c5955 (patch)
tree74a2b33354d3cd15aa58fd7be7d33c8cc550c463 /profiles/remote-builder.nix
parentcleanup nixos related configurations (diff)
downloadinfra-9fa94af7140afb7c9fcced8aa1fb20abb81c5955.tar.gz
add helpers to build remotely with nixos
Diffstat (limited to 'profiles/remote-builder.nix')
-rw-r--r--profiles/remote-builder.nix32
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}
+ '';
+}