all repos — nixfiles @ 5f689657009cc14f916f967075c28596673e2ac4

System and user configuration, managed by nix and home-manager

system/roles/forgejo-runner.nix (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  config,
  pkgs,
  ...
}:
{
  age.secrets.codeberg-runner.file = ../../secrets/codeberg-runner.age;

  services.gitea-actions-runner = {
    package = pkgs.forgejo-runner;
    instances.codeberg = {
      name = config.networking.hostName;
      enable = true;
      url = "https://codeberg.org";
      tokenFile = config.age.secrets.codeberg-runner.path;
      labels = [
        "docker:docker://node:24-alpine"
        "alpine-latest:docker://node:24-alpine"
        "nixos:host"
      ];

      hostPackages = with pkgs; [
        bash
        coreutils
        curl
        gawk
        config.programs.git.package
        gnused
        nix
        nodejs
        wget
      ];
    };
  };
  virtualisation.podman.enable = true;

  virtualisation.containers = {
    enable = true;
    policy = {
      default = [ { type = "insecureAcceptAnything"; } ];
    };
  };
  virtualisation.podman = {
    autoPrune = {
      enable = true;
    };
  };

}