Compared to my Arch setup where I was able to resolve my printer through Avahi, I can’t on NixOS. It does show other devices though it might be missing some others too including the printer. I was able to resolve the printer’s .local. for a bit but now even that’s not working. Any ideas?
services.avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
Starting Nmap 7.95 ( https://nmap.org ) at 2024-10-20 16:03 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000012s latency).
Other addresses for localhost (not scanned): ::1
Not shown: 999 closed udp ports (port-unreach)
PORT STATE SERVICE
5353/udp open|filtered zeroconf
Nmap done: 1 IP address (1 host up) scanned in 1.30 seconds
● avahi-daemon.service - Avahi mDNS/DNS-SD Stack
Loaded: loaded (/etc/systemd/system/avahi-daemon.service; enabled; preset: ignored)
Active: active (running) since Sun 2024-10-20 15:59:24 EDT; 9min ago
Invocation: 7650d280051d49478a150ae7610f69ae
TriggeredBy: ● avahi-daemon.socket
Main PID: 535592 (avahi-daemon)
Status: "Server startup complete. Host name is desktop.local. Local service cookie is []."
IP: 44.9K in, 11.7K out
IO: 0B read, 0B written
Tasks: 1 (limit: 38296)
Memory: 592K (peak: 1.5M)
CPU: 9.706s
CGroup: /system.slice/avahi-daemon.service
└─535592 "avahi-daemon: running [desktop.local]"
Oct 20 15:59:24 desktop avahi-daemon[535592]: Successfully dropped root privileges.
Oct 20 15:59:24 desktop avahi-daemon[535592]: avahi-daemon 0.8 starting up.
Oct 20 15:59:24 desktop systemd[1]: Started Avahi mDNS/DNS-SD Stack.
Oct 20 15:59:24 desktop avahi-daemon[535592]: No service file found in /etc/avahi/services.
Oct 20 15:59:24 desktop avahi-daemon[535592]: Joining mDNS multicast group on interface wlp6s0.IPv4 with address 192.168.1.129.
Oct 20 15:59:24 desktop avahi-daemon[535592]: New relevant interface wlp6s0.IPv4 for mDNS.
Oct 20 15:59:24 desktop avahi-daemon[535592]: Joining mDNS multicast group on interface lo.IPv4 with address 127.0.0.1.
Oct 20 15:59:24 desktop avahi-daemon[535592]: New relevant interface lo.IPv4 for mDNS.
Oct 20 15:59:24 desktop avahi-daemon[535592]: Network interface enumeration completed.
Oct 20 15:59:25 desktop avahi-daemon[535592]: Server startup complete. Host name is desktop.local. Local service cookie is [].