add forgejo runner
This commit is contained in:
parent
5db6606ef8
commit
b49363f299
7 changed files with 139 additions and 5 deletions
|
|
@ -3,6 +3,7 @@
|
|||
imports = [
|
||||
./fail2ban.nix
|
||||
./forgejo.nix
|
||||
./forgejo-runner.nix
|
||||
];
|
||||
|
||||
services.caddy = {
|
||||
|
|
|
|||
18
hosts/physique/hyponix/services/forgejo-runner.nix
Normal file
18
hosts/physique/hyponix/services/forgejo-runner.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{pkgs, config,...}:
|
||||
{
|
||||
|
||||
age.secrets.forgejo-runner-token-1 = {
|
||||
file = ../../../../secrets/services/forgejo/forgejo-runner-token-1.age;
|
||||
};
|
||||
|
||||
services.gitea = {
|
||||
package = pkgs.forgejo-runner;
|
||||
instances.default = {
|
||||
enable = true;
|
||||
name = "runner-1";
|
||||
url = "https://git.v2.${config.networking.domain}";
|
||||
|
||||
tokenFile = config.age.secrets.forgejo-runner-token-1.path;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue