fix(nix): add forgejo actions runner
This commit is contained in:
parent
809c6d73b8
commit
acc139d714
5 changed files with 45 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
|||
tailscale
|
||||
|
||||
nginx
|
||||
docker
|
||||
];
|
||||
in packages;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ inputs, config, pkgs, lib, ... }: {
|
||||
imports = [ ./hw.nix ];
|
||||
imports = [ ./hw.nix ../../modules/secrets.nix ];
|
||||
|
||||
time.timeZone = "America/New_York";
|
||||
|
||||
|
@ -156,6 +156,25 @@
|
|||
};
|
||||
};
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-actions-runner;
|
||||
instances.default = {
|
||||
enable = true;
|
||||
name = "monolith";
|
||||
url = "https://git.priime.dev";
|
||||
tokenFile = config.age.secrets.forgejo-runner-token.path;
|
||||
# Default labels
|
||||
labels = [
|
||||
"ubuntu-latest:docker://node:16-bullseye"
|
||||
"ubuntu-22.04:docker://node:16-bullseye"
|
||||
"ubuntu-20.04:docker://node:16-bullseye"
|
||||
"ubuntu-18.04:docker://node:16-buster"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
services.tailscale.enable = true;
|
||||
|
||||
services.thelounge.enable = true;
|
||||
|
|
6
nix/modules/secrets.nix
Normal file
6
nix/modules/secrets.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
age.secrets = {
|
||||
forgejo-runner-token.file = ../../secrets/forgejo-runner-token.age;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue