Printing: Difference between revisions

m Configuration: services.avahi.nssmdns -> services.avahi.nssmdns4
Writer (talk | contribs)
Explain how to get the model string
Line 85: Line 85:


Search for other printer drivers in the NixOS package directory: the official list of packages is [https://search.nixos.org/packages here]. Add the driver to {{nixos:option|services.printing.drivers}}, '''not''' {{nixos:option|environment.systemPackages}}.
Search for other printer drivers in the NixOS package directory: the official list of packages is [https://search.nixos.org/packages here]. Add the driver to {{nixos:option|services.printing.drivers}}, '''not''' {{nixos:option|environment.systemPackages}}.
To get the specific string for <code>model</code>, run <code>lpinfo -m</code> which will produce output similar to
<pre>
...
samsung/SCX-3200.ppd Samsung SCX-3200 Series
samsung/SCX-3400.ppd Samsung SCX-3400 Series
samsung/SCX-4100.ppd Samsung SCX-4100 Series
samsung/SCX-4200.ppd Samsung SCX-4200 Series
samsung/SCX-4300.ppd Samsung SCX-4300 Series
samsung/SCX-4500.ppd Samsung SCX-4500 Series
samsung/SCX-4500W.ppd Samsung SCX-4500W Series
samsung/SCX-4600.ppd Samsung SCX-4600 Series
samsung/SCX-4623.ppd Samsung SCX-4623 Series
...
</pre>
The <code>model</code> string is the first column. For example for the Samsung SCX-4300 series, set <code>model = "samsung/SCX-4300.ppd";</code>


=== Printer sharing ===
=== Printer sharing ===