diff --git a/packages/myip.nix b/packages/myip.nix new file mode 100644 index 0000000..1c7f60a --- /dev/null +++ b/packages/myip.nix @@ -0,0 +1,8 @@ +{ bind, writeShellApplication }: + +writeShellApplication { + name = "myip"; + text = '' + ${bind.dnsutils}/bin/dig +short myip.opendns.com @resolver1.opendns.com + ''; +} diff --git a/users/jan/home.nix b/users/jan/home.nix index 9876918..95cbfe9 100644 --- a/users/jan/home.nix +++ b/users/jan/home.nix @@ -50,6 +50,8 @@ }) # ungoogled-chromium tor-browser-bundle-bin + + (pkgs.callPackage ../../packages/myip.nix { }) ]; local.git = {