fixed forgejo ci-runner

This commit is contained in:
hannes 2024-09-06 06:52:04 +02:00
parent 87ec46a274
commit a45043e622
2 changed files with 6 additions and 6 deletions

View file

@ -7,7 +7,7 @@
./../../meta/profiles/base.nix ./../../meta/profiles/base.nix
./../../meta/profiles/vm.nix ./../../meta/profiles/vm.nix
]; ];
lyn.sops.secrets."hosts/frottjo-ci-runner/forgejo_ci-token".owner = "gitea-runner"; lyn.sops.secrets."hosts/forgejo-ci/forgejo_ci_token" = {};
# Use UEFI # Use UEFI
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
@ -16,4 +16,5 @@
# Firewall stuff: # Firewall stuff:
networking.firewall.enable = true; networking.firewall.enable = true;
networking.firewall.allowPing = true; networking.firewall.allowPing = true;
system.stateVersion = "23.05";
} }

View file

@ -2,8 +2,6 @@
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
docker docker
forgejo-actions-runner
]; ];
# Enable docker # Enable docker
@ -16,12 +14,13 @@
}; };
# Forgejo actions runner # Forgejo actions runner
services.gitea-actions-runner = { services.gitea-actions-runner = {
package = config.pkgsInstances.unstable.forgejo-runner;
instances = { instances = {
"shibepro-ci" = { "shibepro-ci" = {
enable = true; enable = true;
url = "https://git.shibe.pro"; url = "https://git.shibe.pro";
name = "shibepro-ci"; name = "shibepro-ci";
tokenFile = config.sops.secrets."hosts/forgejo-ci/forgejo_ci-token".path; tokenFile = config.sops.secrets."hosts/forgejo-ci/forgejo_ci_token".path;
labels = []; labels = [];
}; };
}; };