updated hosts in network.nix
This commit is contained in:
6
modules/home/scripts/commands/icanhazip.nix
Normal file
6
modules/home/scripts/commands/icanhazip.nix
Normal 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
|
||||
''
|
||||
Reference in New Issue
Block a user