notohh
5ce837b405
All checks were successful
flake check / check (push) Successful in 8m30s
fmt check / check (push) Successful in 1m4s
83 lines
1.9 KiB
Nix
83 lines
1.9 KiB
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
sops.secrets = {
|
|
snowflake-runner-token = {};
|
|
basegbot-runner-token = {};
|
|
nixgarden-runner-token = {};
|
|
};
|
|
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.nix-garden = {
|
|
settings = {
|
|
container = {
|
|
network = "host";
|
|
};
|
|
};
|
|
enable = true;
|
|
name = config.networking.hostName;
|
|
token = config.sops.secrets.nixgarden-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
|
|
];
|
|
};
|
|
};
|
|
}
|