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