mirror of
https://github.com/thegeneralist01/config.git
synced 2026-03-07 10:59:55 +01:00
forgejo: add runner token
This commit is contained in:
parent
a59d691c8a
commit
a2767fa829
3 changed files with 33 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ in
|
||||||
{
|
{
|
||||||
imports = [ ../../../modules/postgresql.nix ];
|
imports = [ ../../../modules/postgresql.nix ];
|
||||||
|
|
||||||
|
age.secrets.forgejoRunnerToken.file = ./forgejo-runner-token.age;
|
||||||
|
|
||||||
services.forgejo = {
|
services.forgejo = {
|
||||||
enable = true;
|
enable = true;
|
||||||
stateDir = forgejo_folder "state";
|
stateDir = forgejo_folder "state";
|
||||||
|
|
@ -93,5 +95,30 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.gitea-actions-runner = {
|
||||||
|
package = pkgs.forgejo-runner;
|
||||||
|
instances.central = {
|
||||||
|
enable = true;
|
||||||
|
name = "thegeneralist-central";
|
||||||
|
url = "https://${domain}";
|
||||||
|
tokenFile = config.age.secrets.forgejoRunnerToken.path;
|
||||||
|
labels = [ "central:host" ];
|
||||||
|
|
||||||
|
# Host-executed jobs need nix + ssh in PATH.
|
||||||
|
hostPackages = with pkgs; [
|
||||||
|
bash
|
||||||
|
coreutils
|
||||||
|
curl
|
||||||
|
gawk
|
||||||
|
gitMinimal
|
||||||
|
gnused
|
||||||
|
nodejs
|
||||||
|
nix
|
||||||
|
openssh
|
||||||
|
wget
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 2222 ];
|
networking.firewall.allowedTCPPorts = [ 2222 ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
age-encryption.org/v1
|
||||||
|
-> ssh-ed25519 pp9qdQ xQTY8i7SQWpBxxcrYAzkTuK6p5toOknfXef6JOreZHA
|
||||||
|
0WAy/WC6eGjW8yb+mVPwIn6BmTxYfgLlYmV0BKVn+8E
|
||||||
|
--- sfCrXmbA46pPodKC6m3SMmemx8eYMDvp7zqrL0iOfs8
|
||||||
|
cüj°0êÏMÔ¤á“ryêÜ~$8£’ºhÅ/\~©)¿«¸[}<7D>ëÅA÷ô»ZÇ|,èÒÊíÒ<C3AD>ôú¦]1
|
||||||
|
|
@ -10,6 +10,7 @@ in {
|
||||||
"hosts/thegeneralist-central/credentials_personal.age".publicKeys = [ thegeneralist ];
|
"hosts/thegeneralist-central/credentials_personal.age".publicKeys = [ thegeneralist ];
|
||||||
"hosts/thegeneralist-central/cache/key.age".publicKeys = [ thegeneralist ];
|
"hosts/thegeneralist-central/cache/key.age".publicKeys = [ thegeneralist ];
|
||||||
"hosts/thegeneralist-central/password.age".publicKeys = [ thegeneralist ];
|
"hosts/thegeneralist-central/password.age".publicKeys = [ thegeneralist ];
|
||||||
|
"hosts/thegeneralist-central/forgejo/forgejo-runner-token.age".publicKeys = [ thegeneralist ];
|
||||||
|
|
||||||
"modules/linux/tailscale-marshall.age".publicKeys = [ thegeneralist ];
|
"modules/linux/tailscale-marshall.age".publicKeys = [ thegeneralist ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue