9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
25 lines
479 B
Nix
25 lines
479 B
Nix
{ config
|
|
, pkgs
|
|
, lib
|
|
, ...
|
|
}@args:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.services.github-runner;
|
|
in
|
|
|
|
{
|
|
options.services.github-runner = import ./github-runner/options.nix (args // {
|
|
# Users don't need to specify options.services.github-runner.name; it will default
|
|
# to the hostname.
|
|
includeNameDefault = true;
|
|
});
|
|
|
|
config = mkIf cfg.enable {
|
|
services.github-runners.${cfg.name} = cfg;
|
|
};
|
|
|
|
meta.maintainers = with maintainers; [ veehaitch newam thomasjm ];
|
|
}
|