From 841078e6ba13ef8c0497915db34bb1489112fd4d Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Wed, 27 Nov 2024 00:19:59 +0000 Subject: [PATCH] modules/extends/tailscale: replace custom boolToStr with lib variant --- nix/nixos-modules/extends/tailscale.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nix/nixos-modules/extends/tailscale.nix b/nix/nixos-modules/extends/tailscale.nix index 2e231f0..4a859ea 100644 --- a/nix/nixos-modules/extends/tailscale.nix +++ b/nix/nixos-modules/extends/tailscale.nix @@ -1,9 +1,8 @@ { config, lib, ... }: let cfg = config.services.tailscale; - boolToStr = v: if v then "true" else "false"; toTsCli = lib.cli.toGNUCommandLine { - mkBool = k: v: lib.singleton "--${k}=${boolToStr v}"; + mkBool = k: v: lib.singleton "--${k}=${lib.boolToString v}"; mkList = k: v: lib.singleton "--${k}=${builtins.concatStringsSep "," v}"; mkOption = k: v: