mv hosts nixosConfigurations
This commit is contained in:
parent
232728a053
commit
4d28e476dc
24 changed files with 8 additions and 8 deletions
29
nixosConfigurations/forgejo-runner-1/forgejo-runner.nix
Normal file
29
nixosConfigurations/forgejo-runner-1/forgejo-runner.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
config = {
|
||||
environment.systemPackages = with pkgs; [
|
||||
forgejo-runner
|
||||
];
|
||||
|
||||
# https://wiki.nixos.org/wiki/Forgejo
|
||||
|
||||
services.gitea-actions-runner = {
|
||||
package = pkgs.forgejo-actions-runner;
|
||||
instances.default = {
|
||||
enable = true;
|
||||
name = "cccb";
|
||||
url = "https://git.berlin.ccc.de";
|
||||
# Obtaining the path to the runner token file may differ
|
||||
# tokenFile should be in format TOKEN=<secret>, since it's EnvironmentFile for systemd
|
||||
tokenFile = "/etc/forgejo-runner/registration_token";
|
||||
labels = [
|
||||
"ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:rust-24.04"
|
||||
"ubuntu-24.04:docker://ghcr.io/catthehacker/ubuntu:rust-24.04"
|
||||
];
|
||||
settings = {
|
||||
container.network = "bridge";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue