git: Setup runner on marabethia
All checks were successful
Cachix / build (elendel) (push) Successful in 1m2s
Cachix / build (kholinar) (push) Successful in 1m55s
Cachix / build (lasting-integrity) (push) Successful in 1m41s
Cachix / build (marabethia) (push) Successful in 1m8s
Cachix / build (urithiru) (push) Successful in 1m20s
All checks were successful
Cachix / build (elendel) (push) Successful in 1m2s
Cachix / build (kholinar) (push) Successful in 1m55s
Cachix / build (lasting-integrity) (push) Successful in 1m41s
Cachix / build (marabethia) (push) Successful in 1m8s
Cachix / build (urithiru) (push) Successful in 1m20s
This commit is contained in:
parent
49bf851188
commit
df01f9cd93
8 changed files with 162 additions and 0 deletions
|
@ -6,6 +6,8 @@
|
|||
example = true;
|
||||
};
|
||||
|
||||
imports = [ ./runner.nix ];
|
||||
|
||||
config = lib.mkIf config.chvp.services.git.enable {
|
||||
chvp.services.nginx.hosts = [
|
||||
{
|
||||
|
|
36
modules/nixos/services/git/runner.nix
Normal file
36
modules/nixos/services/git/runner.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options.chvp.services.git.runner.enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.chvp.services.git.runner.enable {
|
||||
networking.firewall.trustedInterfaces = [ "br-+" ];
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-actions-runner;
|
||||
instances.default = {
|
||||
enable = true;
|
||||
url = "https://git.chvp.be";
|
||||
labels = [];
|
||||
name = config.networking.hostName;
|
||||
tokenFile = config.age.secrets."passwords/services/git/token-file".path;
|
||||
settings = {
|
||||
container.enable_ipv6 = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
daemon.settings = {
|
||||
fixed-cidr-v6 = "fd00::/80";
|
||||
ipv6 = true;
|
||||
};
|
||||
};
|
||||
|
||||
age.secrets."passwords/services/git/token-file" = {
|
||||
file = ../../../../secrets/passwords/services/git/token-file.age;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue