mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Make more use of pipes
This commit is contained in:
parent
cd3765efea
commit
14b0e0ac1d
4 changed files with 9 additions and 7 deletions
|
|
@ -158,7 +158,7 @@ in
|
|||
mkEndpoint =
|
||||
value:
|
||||
let
|
||||
isPrivate = lib.hasInfix config.custom.services.tailscale.domain value.url;
|
||||
isPrivate = value.url |> lib.hasInfix config.custom.services.tailscale.domain;
|
||||
deducedGroup = if isPrivate then "Private" else "Public";
|
||||
in
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue