about summary refs log tree commit diff
path: root/nixos/modules/services/continuous-integration/github-runner.nix
blob: 24d02c931a4ae471563fc9f955178d508d3ff915 (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
{ 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;
  };
}