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" ];
|
2024-05-24 23:51:57 +03:00
|
|
|
hyprspace = [ "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
|
|
|
|
];
|
2024-05-24 23:51:57 +03:00
|
|
|
hyprspace = [
|
|
|
|
./common.nix
|
|
|
|
./orgs/hyprspace.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 {});
|
2024-07-04 23:07:09 +03:00
|
|
|
buckets.nix-store = {
|
|
|
|
allow = lib.genAttrs hciAgentKeys (lib.const [ "read" "write" ]);
|
|
|
|
web.enable = true;
|
|
|
|
};
|
2024-04-19 19:00:58 +03:00
|
|
|
};
|
2022-11-23 17:24:04 +02:00
|
|
|
}
|