system/packages/myip.nix

9 lines
171 B
Nix
Raw Normal View History

2023-03-03 00:35:22 +03:00
{ bind, writeShellApplication }:
writeShellApplication {
name = "myip";
text = ''
${bind.dnsutils}/bin/dig +short myip.opendns.com @resolver1.opendns.com
'';
}