c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
23 lines
409 B
Nix
23 lines
409 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;
|
|
};
|
|
}
|