dotfiles/nixos/boxes/bolty/gitea-runner.nix

24 lines
797 B
Nix
Raw Normal View History

2023-06-01 22:10:18 +01:00
{ config, pkgs, inputs, lib, ... }: {
sops.secrets."gitea-runner-token" = {
sopsFile = ./gitea-runner-token.sops;
format = "binary";
};
virtualisation.podman = {
enable = true;
autoPrune.enable = true;
};
services.gitea-actions-runner.instances.bolty1 = {
enable = true;
url = "https://git.cyplo.dev";
tokenFile = config.sops.secrets."gitea-runner-token".path;
name = "bolty1";
2023-06-02 12:22:44 +01:00
labels = [
2023-06-10 08:42:02 +01:00
"nixery-nix-node:docker://nixery.dev/shell/nix/git/nodejs:latest"
"nix-flakes:docker://nixpkgs/nix-flakes:latest"
2023-07-01 08:48:45 +01:00
"node16:docker://node:16-bullseye" # compat with github actions
"node-latest:docker://node:lts-bookworm" # compat with github actions
2023-07-01 09:00:59 +01:00
"ubuntu-kinetic:docker://ubuntu:kinetic" # compat with github actions
2023-06-02 12:22:44 +01:00
];
2023-06-01 22:10:18 +01:00
};
}