about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/services/continuous-integration/github-runner.nix
blob: 27cfee92c75a36ce1dde849afe6228f10fa12f9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ 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 ];
}