infra/modules/darwin/hercules-ci.nix

25 lines
614 B
Nix
Raw Permalink Normal View History

2024-07-09 11:41:05 +10:00
{ config, inputs, ... }:
2024-12-16 08:34:56 +10:00
let
secret = {
2024-07-09 11:41:05 +10:00
mode = "600";
owner = "_hercules-ci-agent";
group = "_hercules-ci-agent";
2024-12-16 08:34:56 +10:00
sopsFile = "${inputs.self}/modules/secrets/hercules-ci.yaml";
2024-07-09 11:41:05 +10:00
};
2024-12-16 08:34:56 +10:00
in
{
sops.secrets.hercules-binary-caches = secret;
sops.secrets.hercules-cluster-join-token = secret;
2024-07-09 11:41:05 +10:00
services.hercules-ci-agent = {
enable = true;
settings = {
2024-12-16 08:34:56 +10:00
binaryCachesPath = config.sops.secrets.hercules-binary-caches.path;
clusterJoinTokenPath = config.sops.secrets.hercules-cluster-join-token.path;
# secretsJsonPath / hercules-secrets isn't needed on darwin
2024-07-09 11:41:05 +10:00
};
};
}