feat(homeprinter): enable Avahi service and configure firewall

Enable Avahi service to support mDNS for both IPv4 and IPv6. Add mDNS port 5353 to the allowed UDP ports in the firewall to ensure network discovery.
This commit is contained in:
Harald Hoyer 2024-10-16 14:43:21 +02:00
parent 82c476bd75
commit 1e96221b75

View file

@ -16,6 +16,16 @@ in
gutenprint
];
services.avahi = {
enable = true;
nssmdns4 = true;
nssmdns6 = true;
ipv6 = true;
ipv4 = true;
};
networking.firewall.allowedUDPPorts = [ 5353 ];
hardware.printers.ensurePrinters = [
{
name = "Brother_DCP-L2530DW_series";