2023-10-19 21:23:25 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2023-12-30 21:33:42 -05:00
|
|
|
sops.secrets = {
|
2024-01-16 01:52:46 -05:00
|
|
|
snowflake-runner-token = {
|
|
|
|
sopsFile = ../../../secrets/runners/secrets.yaml;
|
|
|
|
};
|
|
|
|
basegbot-runner-token = {
|
|
|
|
sopsFile = ../../../secrets/runners/secrets.yaml;
|
|
|
|
};
|
|
|
|
notohh-dev-runner-token = {
|
|
|
|
sopsFile = ../../../secrets/runners/secrets.yaml;
|
|
|
|
};
|
2023-12-30 21:33:42 -05:00
|
|
|
};
|
2023-10-19 21:23:25 -04:00
|
|
|
services.gitea-actions-runner = {
|
|
|
|
package = pkgs.forgejo-actions-runner;
|
|
|
|
instances.snowflake = {
|
|
|
|
settings = {
|
|
|
|
container = {
|
|
|
|
network = "host";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
enable = true;
|
|
|
|
name = config.networking.hostName;
|
2023-10-20 01:31:25 -04:00
|
|
|
token = config.sops.secrets.snowflake-runner-token.path;
|
2023-10-19 21:23:25 -04:00
|
|
|
url = "https://git.flake.sh";
|
|
|
|
labels = [
|
|
|
|
"debian-latest:docker://node:18-bullseye"
|
|
|
|
"ubuntu-latest:docker://node:18-bullseye"
|
|
|
|
#"native:host"
|
|
|
|
];
|
|
|
|
hostPackages = with pkgs; [
|
|
|
|
bash
|
|
|
|
curl
|
|
|
|
coreutils
|
|
|
|
wget
|
|
|
|
gitMinimal
|
|
|
|
];
|
|
|
|
};
|
|
|
|
instances.basegbot = {
|
|
|
|
settings = {
|
|
|
|
container = {
|
|
|
|
network = "host";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
enable = true;
|
|
|
|
name = config.networking.hostName;
|
|
|
|
token = config.sops.secrets.basegbot-runner-token.path;
|
|
|
|
url = "https://git.flake.sh";
|
|
|
|
labels = [
|
|
|
|
"debian-latest:docker://node:18-bullseye"
|
|
|
|
"ubuntu-latest:docker://node:18-bullseye"
|
|
|
|
#"native:host"
|
|
|
|
];
|
|
|
|
hostPackages = with pkgs; [
|
|
|
|
bash
|
|
|
|
curl
|
|
|
|
coreutils
|
|
|
|
wget
|
|
|
|
gitMinimal
|
|
|
|
];
|
|
|
|
};
|
2024-01-16 01:52:46 -05:00
|
|
|
instances.notohh-dev = {
|
2023-12-30 20:47:28 -05:00
|
|
|
settings = {
|
|
|
|
container = {
|
|
|
|
network = "host";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
enable = true;
|
|
|
|
name = config.networking.hostName;
|
2024-01-16 01:52:46 -05:00
|
|
|
token = config.sops.secrets.notohh-dev-runner-token.path;
|
2023-12-30 20:47:28 -05:00
|
|
|
url = "https://git.flake.sh";
|
|
|
|
labels = [
|
|
|
|
"debian-latest:docker://node:18-bullseye"
|
|
|
|
"ubuntu-latest:docker://node:18-bullseye"
|
|
|
|
#"native:host"
|
|
|
|
];
|
|
|
|
hostPackages = with pkgs; [
|
|
|
|
bash
|
|
|
|
curl
|
|
|
|
coreutils
|
|
|
|
wget
|
|
|
|
gitMinimal
|
|
|
|
];
|
|
|
|
};
|
2023-10-19 21:23:25 -04:00
|
|
|
};
|
|
|
|
}
|