32 lines
566 B
Nix
32 lines
566 B
Nix
{
|
|
lib,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.servers.gitea;
|
|
in
|
|
{
|
|
config = lib.mkIf cfg.enable {
|
|
services.gitea-actions-runner.instances.nixos-builder = {
|
|
enable = true;
|
|
url = cfg.url;
|
|
name = "${config.networking.hostName}-nixos-builder";
|
|
tokenFile = config.sops.secrets.gitea.path;
|
|
labels = [
|
|
"nixos:host"
|
|
];
|
|
hostPackages = builtins.attrValues {
|
|
inherit (pkgs)
|
|
bash
|
|
coreutils
|
|
gitMinimal
|
|
nix
|
|
attic-client
|
|
;
|
|
};
|
|
};
|
|
};
|
|
}
|