main
nix 38 lines 1.04 KB
Raw
1 {
2 config,
3 inputs,
4 lib,
5 ...
6 }:
7
8 {
9 imports = [
10 inputs.hydra.darwinModules.builder
11 ../../non-critical-infra/modules/hydra/staging-cache.nix
12 ];
13
14 services.hydra-queue-builder-dev = {
15 enable = true;
16 queueRunnerAddr = "https://queue-runner.staging-hydra.nixos.org";
17 maxJobs = 2;
18 mtls = {
19 serverRootCaCertPath = builtins.path {
20 path = ../../non-critical-infra/hosts/staging-hydra/ca.crt;
21 name = "staging-hydra-ca.crt";
22 };
23 clientCertPath = builtins.path {
24 path = ../ofborg-ca/client-${config.networking.localHostName}.crt;
25 name = "client-${config.networking.localHostName}.crt";
26 };
27 clientKeyPath = config.sops.secrets."queue-runner-client.key".path;
28 domainName = "queue-runner.staging-hydra.nixos.org";
29 };
30 };
31
32 sops.secrets."queue-runner-client.key" = {
33 owner = "hydra-queue-builder";
34 sopsFile = ../secrets/${config.networking.localHostName}.yml;
35 };
36
37 users.users.hydra-queue-builder.home = lib.mkForce "/private/var/lib/hydra-queue-builder";
38 }