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:
		
							parent
							
								
									82c476bd75
								
							
						
					
					
						commit
						1e96221b75
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		|  | @ -16,6 +16,16 @@ in | ||||||
|       gutenprint |       gutenprint | ||||||
|     ]; |     ]; | ||||||
| 
 | 
 | ||||||
|  |     services.avahi = { | ||||||
|  |       enable = true; | ||||||
|  |       nssmdns4 = true; | ||||||
|  |       nssmdns6 = true; | ||||||
|  |       ipv6 = true; | ||||||
|  |       ipv4 = true; | ||||||
|  |     }; | ||||||
|  | 
 | ||||||
|  |     networking.firewall.allowedUDPPorts = [ 5353 ]; | ||||||
|  | 
 | ||||||
|     hardware.printers.ensurePrinters = [ |     hardware.printers.ensurePrinters = [ | ||||||
|       { |       { | ||||||
|         name = "Brother_DCP-L2530DW_series"; |         name = "Brother_DCP-L2530DW_series"; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue