From d9334a237d04267d35422ae8eccb7c64759160f3 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 28 Jul 2026 22:41:01 -0500 Subject: [PATCH] chore: first bit of local IP querying --- home/baseline/nushell/functions.nu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/baseline/nushell/functions.nu b/home/baseline/nushell/functions.nu index 70a4672..0fc55e8 100644 --- a/home/baseline/nushell/functions.nu +++ b/home/baseline/nushell/functions.nu @@ -16,6 +16,10 @@ def nebulaIps [] { open /etc/nixos/network.json | get hosts | items { |h, e| $e.nebulaIp? } | where $it != null | sort } +def localIps [] { + open /etc/nixos/network.json | get hosts | items { |h, e| $e.ip? } | where $it != null | sort +} + def genNebulaCert [ --ips: string, --name: string ] { let public = $'~/SynologyDrive/nebula/($name).key.pub' | path expand let private = $'~/SynologyDrive/nebula/($name).key' | path expand