diff options
| author | Michael Hoang <enzime@users.noreply.github.com> | 2024-12-07 12:53:16 +1100 |
|---|---|---|
| committer | Michael Hoang <enzime@users.noreply.github.com> | 2024-12-07 12:54:17 +1100 |
| commit | d8255f09da39e603e710149dc87a5f3eaa4ff049 (patch) | |
| tree | 927c7565d6ebde3927ffbdefce1f2b2240a6f4eb /modules/services/github-runner | |
| parent | 55d07816a0944f06a9df5ef174999a72fa4060c7 (diff) | |
github-runner: remove `with lib;`
Diffstat (limited to 'modules/services/github-runner')
| -rw-r--r-- | modules/services/github-runner/options.nix | 4 | ||||
| -rw-r--r-- | modules/services/github-runner/service.nix | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/modules/services/github-runner/options.nix b/modules/services/github-runner/options.nix index 8f98aa0..7508434 100644 --- a/modules/services/github-runner/options.nix +++ b/modules/services/github-runner/options.nix @@ -3,7 +3,9 @@ , ... }: -with lib; +let + inherit (lib) literalExpression mkOption mkPackageOption types; +in { options.services.github-runners = mkOption { description = '' diff --git a/modules/services/github-runner/service.nix b/modules/services/github-runner/service.nix index 21d908e..7360a34 100644 --- a/modules/services/github-runner/service.nix +++ b/modules/services/github-runner/service.nix @@ -1,6 +1,10 @@ { config, lib, pkgs, ... }: -with lib; + let + inherit (lib) any attrValues boolToString concatStringsSep escapeShellArg + flatten flip getExe hasAttr hasPrefix mapAttrsToList mapAttrs' mkBefore + mkDefault mkIf mkMerge nameValuePair optionalAttrs optionalString replaceStrings; + mkSvcName = name: "github-runner-${name}"; mkStateDir = cfg: "/var/lib/github-runners/${cfg.name}"; mkLogDir = cfg: "/var/log/github-runners/${cfg.name}"; |
