From ec16caeaf17f07dba30d701d2d4c016ae9a421e6 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Tue, 4 Feb 2025 15:19:20 -0500 Subject: [PATCH] gitlab-runner: Eliminate use of `with` --- modules/services/gitlab-runner.nix | 40 ++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/modules/services/gitlab-runner.nix b/modules/services/gitlab-runner.nix index e60d9b5f7..77c37451b 100644 --- a/modules/services/gitlab-runner.nix +++ b/modules/services/gitlab-runner.nix @@ -1,7 +1,43 @@ { config, lib, pkgs, ... }: -with builtins; -with lib; let + inherit (builtins) + hashString + map + substring + toJSON + toString + unsafeDiscardStringContext + ; + + inherit (lib) + any + assertMsg + attrNames + attrValues + concatStringsSep + escapeShellArg + filterAttrs + hasPrefix + isStorePath + literalExpression + mapAttrs' + mapAttrsToList + mkDefault + mkEnableOption + mkIf + mkOption + mkPackageOption + mkRemovedOptionModule + mkRenamedOptionModule + nameValuePair + optional + optionalAttrs + optionals + teams + toShellVar + types + ; + cfg = config.services.gitlab-runner; hasDocker = config.virtualisation.docker.enable; hashedServices = mapAttrs'