System Gen53 @ 2026-09-04-14:58:37 by jonas@harbor
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
flake.nixosModules.gitea-instance = {
|
flake.nixosModules.gitea-instance = {
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
cfg = config.hive.gitea-instance;
|
cfg = config.hive.gitea-instance;
|
||||||
@@ -84,28 +85,35 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# act_runner
|
# act_runner
|
||||||
services.gitea-actions-runner = lib.mkIf cfg.nativeRunner {
|
services.gitea-actions-runner.instances.nixoshost = {
|
||||||
instances.nixos-host = {
|
enable = cfg.nativeRunner;
|
||||||
enable = true;
|
name = "nixos-host-runner";
|
||||||
name = "nixos-host-runner";
|
url = "https://${cfg.instanceFQDN}";
|
||||||
url = "https://${cfg.instanceFQDN}";
|
tokenFile = "/var/lib/gitea-registration/nixos-host";
|
||||||
tokenFile = "/var/lib/gitea-registration/nixos-host";
|
|
||||||
|
|
||||||
labels = ["nixos:host"];
|
hostPackages = with pkgs; [
|
||||||
|
bash
|
||||||
|
coreutils
|
||||||
|
curl
|
||||||
|
gawk
|
||||||
|
gitMinimal
|
||||||
|
gnused
|
||||||
|
nix
|
||||||
|
nodejs
|
||||||
|
wget
|
||||||
|
];
|
||||||
|
|
||||||
settings = {
|
labels = ["nixos:host"];
|
||||||
runner = {
|
|
||||||
capacity = 1;
|
settings = {
|
||||||
};
|
runner = {
|
||||||
|
capacity = 1;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
systemd.services.gitea-runner-nixos-host = lib.mkIf cfg.nativeRunner {
|
systemd.services.gitea-runner-nixoshost = lib.mkIf cfg.nativeRunner {
|
||||||
after = ["gitea-runner-gen-token.service"];
|
after = ["gitea-runner-gen-token.service"];
|
||||||
requires = ["gitea-runner-gen-token.service"];
|
requires = ["gitea-runner-gen-token.service"];
|
||||||
serviceConfig.Environment = ''
|
|
||||||
PATH=/run/current-system/sw/bin:/usr/bin:/bin
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
systemd.services.gitea-runner-gen-token = lib.mkIf cfg.nativeRunner {
|
systemd.services.gitea-runner-gen-token = lib.mkIf cfg.nativeRunner {
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
|
|||||||
Reference in New Issue
Block a user