notohh
0d6aaaa943
All checks were successful
flake check / check (push) Successful in 4m17s
fmt check / check (push) Successful in 58s
89 lines
2 KiB
Nix
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
|
|
];
|
|
};
|
|
};
|
|
}
|