nixos-hypervisor/services/forgejo-runner/default.nix
2024-10-23 12:16:24 +02:00

24 lines
653 B
Nix

{ config, pkgs, lib, ... }:
let
cfg = config.services.vm_forgejo;
in
{
options.services.vm_forgejo = {
enable = lib.mkEnableOption "Enable Forgejo service";
};
config = lib.mkIf cfg.enable {
age.secrets.forgejo-runner-token.file = ./secrets/forgejo-runner-token.age
services.forgejo-actions-runner = {
package = pkgs.forgejo-actions-runner;
instances.default = {
enable = true;
name = "monolith";
url = "https://git.le43.eu";
tokenFile = config.age.secrets.forgejo-runner-token.path;
labels = [
"ubuntu-latest:docker://node:16-bullseye"
];
};
};
};
}