31 lines
710 B
Nix
31 lines
710 B
Nix
{ 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";
|
|
};
|
|
}
|