Flake is now modular and supports forgejo and forgejo-ci-runner #1

Merged
lynatic merged 14 commits from debug into main 2024-09-06 07:08:01 +02:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit a12174a4aa - Show all commits

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 = [];
}; };
}; };