dotfiles/lib.nix

7 lines
102 B
Nix
Raw Normal View History

2023-12-18 08:48:49 +07:00
{ lib, ... }:
{
quoteListenAddr = addr:
if lib.hasInfix ":" addr then "[${addr}]" else addr;
}