2024-10-23 12:14:11 +02:00
|
|
|
{ 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 {
|
2024-10-23 13:10:45 +02:00
|
|
|
age.secrets.forgejo-runner-token.file = ./secrets/forgejo-runner-token.age;
|
|
|
|
services.gitea-actions-runner = {
|
2024-10-23 12:14:11 +02:00
|
|
|
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 = [
|
2024-10-23 13:10:45 +02:00
|
|
|
"native:host"
|
2024-10-23 12:14:11 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|