mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
26 lines
470 B
Nix
26 lines
470 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 ];
|
|
}
|