updated hosts in network.nix

This commit is contained in:
pagedmov
2024-11-02 17:14:19 -04:00
parent ce51067835
commit 2ca5f9351e
3 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
{ pkgs }:
pkgs.writeShellScriptBin "icanhazip" ''
echo "Public IP: $(curl -s icanhazip.com -4)"
ip route | awk '/default/ {print "Default Gateway: " $3} /src/ {print "Local IP: " $9}' | head -n 2
''