at 23.11-pre 470 B view raw
1{ config 2, pkgs 3, lib 4, ... 5}@args: 6 7with lib; 8 9let 10 cfg = config.services.github-runner; 11in 12 13{ 14 options.services.github-runner = import ./github-runner/options.nix (args // { 15 # Users don't need to specify options.services.github-runner.name; it will default 16 # to the hostname. 17 includeNameDefault = true; 18 }); 19 20 config = mkIf cfg.enable { 21 services.github-runners.${cfg.name} = cfg; 22 }; 23 24 meta.maintainers = with maintainers; [ veehaitch newam ]; 25}