.
This commit is contained in:
parent
50007f068e
commit
db5af11266
5 changed files with 75 additions and 0 deletions
35
services/forgejo-runner.nix
Normal file
35
services/forgejo-runner.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
sops.secrets."forgejo/runner_token" = {
|
||||
sopsFile = ./secrets/forgejo.yaml;
|
||||
};
|
||||
|
||||
sops.templates."forgejo-runner-token".content = ''
|
||||
TOKEN=${config.sops.placeholder."forgejo/runner_token"}
|
||||
'';
|
||||
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-runner;
|
||||
|
||||
instances.default = {
|
||||
enable = true;
|
||||
name = "home-server";
|
||||
url = "https://forgejo.ellie.town";
|
||||
tokenFile = config.sops.templates."forgejo-runner-token".path;
|
||||
|
||||
labels = [
|
||||
"native:host"
|
||||
];
|
||||
|
||||
hostPackages = with pkgs; [
|
||||
bash
|
||||
coreutils
|
||||
git
|
||||
nix
|
||||
curl
|
||||
nodejs
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue