From 2fd25ace93bb7057ff5e0044907b0f3b431883a8 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 12 Aug 2025 10:18:59 -0700 Subject: add profiles for darwin and remote builder --- profiles/nix/remote-builder.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 profiles/nix/remote-builder.nix (limited to 'profiles/nix') 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} + ''; +} -- cgit v1.2.3