Printing: Difference between revisions
Sochotnicky (talk | contribs) Add instructions for lpadmin group |
m The option 'services.avahi.nssmdns' has been renamed to 'services.avahi.nssmdns4' and 'services.avahi.nssmdns6'. |
||
| (One intermediate revision by one other user not shown) | |||
| Line 33: | Line 33: | ||
Discovery is done via the opened UDP port <code>5353</code>. Printers should get automatically detected and visible in your printer configuration client. | Discovery is done via the opened UDP port <code>5353</code>. Printers should get automatically detected and visible in your printer configuration client. | ||
=== Enable auto-discovery of USB printers === | |||
Some printers can be automatically discovered with IPP-over-USB. To discover these printers as a locally accessible network printer/scanner, add the following to your system configuration:<syntaxhighlight lang="nix"> | |||
services.ipp-usb.enable = true; | |||
</syntaxhighlight> | |||
=== Adding printers === | === Adding printers === | ||
| Line 162: | Line 167: | ||
services.avahi = { | services.avahi = { | ||
enable = true; | enable = true; | ||
nssmdns4 = true; # for IPv4 (use nssmdns6 for IPv6) | |||
openFirewall = true; | openFirewall = true; | ||
publish = { | publish = { | ||