Move gitea-actions-runner.nix

Also remove any unneeded references to outputs.nixosModules.
This commit is contained in:
Oliver Davies 2025-08-18 12:00:00 +01:00
parent 403a93f951
commit a0575bdb2a
9 changed files with 32 additions and 92 deletions

View file

@ -0,0 +1,31 @@
{ inputs, ... }:
{
flake.modules.nixos."nixosConfigurations/nixedo" =
{ config, pkgs, ... }:
{
services.gitea-actions-runner.instances.default = {
enable = true;
hostPackages = with pkgs; [
bash
coreutils
curl
gawk
gitMinimal
gnused
nix
nodejs
wget
];
labels = [ "nixos:host" ];
name = config.networking.hostName;
tokenFile = config.age.secrets.forgejo-runner-token.path;
url = config.services.forgejo.settings.server.ROOT_URL;
};
age.secrets.forgejo-runner-token.file = "${inputs.self}/secrets/forgejo-runner-token.age";
};
}