2023-08-31 01:55:45 +03:00
|
|
|
{ config, lib, depot, ... }:
|
2022-11-23 17:24:04 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
services.hercules-ci-multi-agent = {
|
|
|
|
nodes = {
|
|
|
|
private-void = [ "VEGAS" "prophet" ];
|
2022-11-23 18:05:40 +02:00
|
|
|
nixpak = [ "VEGAS" "prophet" ];
|
|
|
|
max = [ "VEGAS" "prophet" ];
|
2022-11-23 17:24:04 +02:00
|
|
|
};
|
|
|
|
nixos = {
|
|
|
|
private-void = [
|
|
|
|
./common.nix
|
|
|
|
./orgs/private-void.nix
|
|
|
|
];
|
|
|
|
nixpak = [
|
|
|
|
./common.nix
|
|
|
|
./orgs/nixpak.nix
|
|
|
|
];
|
2022-11-23 18:05:40 +02:00
|
|
|
max = [
|
|
|
|
./common.nix
|
|
|
|
./orgs/max.nix
|
|
|
|
];
|
2022-11-23 17:24:04 +02:00
|
|
|
};
|
|
|
|
};
|
2024-04-19 19:00:58 +03:00
|
|
|
garage = let
|
|
|
|
hciAgentKeys = lib.pipe config.services.hercules-ci-multi-agent.nodes [
|
|
|
|
(lib.collect lib.isList)
|
|
|
|
lib.flatten
|
|
|
|
lib.unique
|
|
|
|
(map (x: "hci-agent-${x}"))
|
|
|
|
];
|
|
|
|
in {
|
|
|
|
keys = lib.genAttrs hciAgentKeys (lib.const {});
|
|
|
|
buckets.nix-store.allow = lib.genAttrs hciAgentKeys (lib.const [ "read" "write" ]);
|
|
|
|
};
|
2022-11-23 17:24:04 +02:00
|
|
|
}
|