From c06ffa57743f14a23ce24affbcc383e43e20f52d Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 3 Mar 2023 00:35:22 +0300 Subject: [PATCH] add myip tool --- packages/myip.nix | 8 ++++++++ users/jan/home.nix | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 packages/myip.nix 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 = {