dotfiles/lib.nix
2023-12-18 08:48:49 +07:00

7 lines
102 B
Nix

{ lib, ... }:
{
quoteListenAddr = addr:
if lib.hasInfix ":" addr then "[${addr}]" else addr;
}