Printing: Difference between revisions
imported>VincentVanlaer services.avahi.nssmdns needs to be enabled, otherwise dnssd:// printer urls will not resolve |
imported>Jiltq m added info + made it clear what config changes do |
||
| Line 1: | Line 1: | ||
==IPP everywhere capable printer== | ==IPP everywhere capable printer== | ||
Most printers manufactured after 2013 support the [https://www.pwg.org/ipp/everywhere.html IPP Everywhere] protocol, i.e. printing without installing drivers. This is notably the case of all WiFi printers marketed as Apple-compatible ([https://support.apple.com/en-ca/HT201311 list]). | |||
To detect these printers, add the following to <code>/etc/nixos/configuration.nix</code>: | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
{ | { | ||
... | ... | ||
services.printing.enable = true; | services.printing.enable = true; # enables printing support via the CUPS daemon | ||
services.avahi.enable = true; | services.avahi.enable = true; # runs the Avahi daemon | ||
services.avahi.nssmdns = true; | services.avahi.nssmdns = true; # enables the mDNS NSS plug-in | ||
services.avahi.openFirewall = true; # opens the firewall for UDP port 5353 | |||
services.avahi.openFirewall = true; | |||
... | ... | ||
} | } | ||