From e36af9e1e48a669eea6d4b83c89cb9823c029719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schr=C3=B6ter?= Date: Thu, 7 Mar 2024 20:09:36 +0100 Subject: [PATCH] fix(home-server): fix inadyn ipv4 command --- hosts/home-server.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hosts/home-server.nix b/hosts/home-server.nix index 6420c37..4b29494 100644 --- a/hosts/home-server.nix +++ b/hosts/home-server.nix @@ -60,8 +60,9 @@ in { ''; services.inadyn.ipv4.enable = true; services.inadyn.ipv4.command = "${pkgs.writeScript "get-ipv4" '' - /run/wrappers/bin/mullvad-exclude \ - ${pkgs.curl}/bin/curl -4 -s --retry 10 ifconfig.co + ${pkgs.tailscale}/bin/tailscale status --json \ + | ${pkgs.jq}/bin/jq -r '.Self.Addrs[0]' \ + | cut -f1 -d":" ''}"; services.inadyn.ipv6.enable = true; services.inadyn.ipv6.command = "${pkgs.writeScript "get-ipv6" ''