snowflake/hosts/tsuru/services/forgejo-runners.nix

58 lines
1.3 KiB
Nix
Raw Normal View History

2023-10-19 21:23:25 -04:00
{
pkgs,
config,
...
}: {
2023-10-20 01:31:25 -04:00
sops.secrets.snowflake-runner-token = {};
2023-10-19 21:23:25 -04:00
sops.secrets.basegbot-runner-token = {};
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
];
};
};
}