snowflake/hosts/tsuru/services/forgejo-runners.nix
notohh 0d6aaaa943
All checks were successful
flake check / check (push) Successful in 4m17s
fmt check / check (push) Successful in 58s
tsuru: update secret pathing
2024-01-16 01:52:46 -05:00

89 lines
2 KiB
Nix

{
pkgs,
config,
...
}: {
sops.secrets = {
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;
};
};
services.gitea-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.snowflake = {
settings = {
container = {
network = "host";
};
};
enable = true;
name = config.networking.hostName;
token = config.sops.secrets.snowflake-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
];
};
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
];
};
instances.notohh-dev = {
settings = {
container = {
network = "host";
};
};
enable = true;
name = config.networking.hostName;
token = config.sops.secrets.notohh-dev-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
];
};
};
}