From 6193a89185576e5517f73e5ebd1ac9a033a69ee2 Mon Sep 17 00:00:00 2001 From: 4DBug Date: Tue, 18 Mar 2025 16:23:43 -0500 Subject: [PATCH] push --- main.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.nix b/main.nix index a44b16e..ddfbf0e 100644 --- a/main.nix +++ b/main.nix @@ -43,7 +43,7 @@ programs = { bash.shellAliases = { rebuild = "sudo nixos-rebuild switch --impure"; - pi = "ssh $(nmap -sn 192.168.1.0/24 | grep \"pi.home\" | grep -oE '([0-9]{1,3}\\.){3}[0-9]{1,3}')"; + pi = "ssh $(avahi-resolve-host-name -4 pi.home | awk '{print $2}')"; pico = "ssh pico.sh"; # tuns name port tuns = "bash -c '\''if [ \"$#\" -ne 2 ]; then echo \"Usage: tun name port\"; exit 1; fi;