system/packages/myip.nix

8 lines
171 B
Nix

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