Skip to content

Commit

Permalink
darwin03: convert to CI builder
Browse files Browse the repository at this point in the history
  • Loading branch information
zowoq committed May 16, 2024
1 parent b90145d commit ab6f582
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hosts/build03/builders.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,14 @@
systems = [ "aarch64-darwin" "x86_64-darwin" ];
supportedFeatures = inputs.self.outputs.darwinConfigurations.darwin02.config.nix.settings.system-features;
}
{
hostName = "darwin03.nix-community.org";
maxJobs = 8;
protocol = "ssh-ng";
sshKey = config.sops.secrets.id_buildfarm.path;
sshUser = "nix";
systems = [ "aarch64-darwin" "x86_64-darwin" ];
supportedFeatures = inputs.self.outputs.darwinConfigurations.darwin03.config.nix.settings.system-features;
}
];
}
5 changes: 5 additions & 0 deletions hosts/darwin03/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@
imports = [
inputs.self.darwinModules.common
inputs.self.darwinModules.builder
inputs.self.darwinModules.hercules-ci
inputs.self.darwinModules.remote-builder
];

# on nix-darwin if user is removed the keys need to be removed manually from /etc/ssh/authorized_keys.d
nixCommunity.remote-builder.key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEmdo1x1QkRepZf7nSe+OdEWX+wOjkBLF70vX9F+xf68 builder";

nix.settings.sandbox = "relaxed";
nix.settings.extra-platforms = [ "x86_64-darwin" ];

Expand Down

0 comments on commit ab6f582

Please sign in to comment.