Skip to content

Commit

Permalink
github-runner: remove with lib;
Browse files Browse the repository at this point in the history
  • Loading branch information
Enzime committed Dec 7, 2024
1 parent 55d0781 commit d8255f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/services/github-runner/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
, ...
}:

with lib;
let
inherit (lib) literalExpression mkOption mkPackageOption types;
in
{
options.services.github-runners = mkOption {
description = ''
Expand Down
6 changes: 5 additions & 1 deletion modules/services/github-runner/service.nix
Original file line number Diff line number Diff line change
@@ -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}";
Expand Down

0 comments on commit d8255f0

Please sign in to comment.