Printing: Difference between revisions
imported>Mickours |
imported>Tobias.bora Enabling nssmdns is important if the shared printer have an address like "cups.local" |
||
Line 56: | Line 56: | ||
# Enable automatic discovery of the printer from other Linux systems with avahi running. | # Enable automatic discovery of the printer from other Linux systems with avahi running. | ||
services.avahi.enable = true; | services.avahi.enable = true; | ||
services.avahi.nssmdns = true; # Important to resolve .local domains of printers! | |||
services.avahi.publish.enable = true; | services.avahi.publish.enable = true; | ||
services.avahi.publish.userServices = true; | services.avahi.publish.userServices = true; | ||
services.printing.browsing = true; | services.printing.browsing = true; | ||
services.printing.listenAddresses = [ "*:631" ]; # Not 100% sure this is needed and you might want to restrict to the local network | services.printing.listenAddresses = [ "*:631" ]; # Not 100% sure this is needed and you might want to restrict to the local network |