Printing: Difference between revisions
imported>Fadenb m replace html entities |
imported>Joepie91 No edit summary |
||
| Line 7: | Line 7: | ||
services.printing.drivers = [ YOUR_DRIVER ]; | services.printing.drivers = [ YOUR_DRIVER ]; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Replace <code>YOUR_DRIVER</code> with the driver of your printer. The driver is a regular derivation but should be added to <syntaxhighlight lang="nix" inline>services.printing.drivers</syntaxhighlight>, ''not'' <syntaxhighlight lang="nix" inline>environment.systemPackages</syntaxhighlight>. [https://nixos.org/nixos/packages.html Search] for eg. "print driver". | Replace <code>YOUR_DRIVER</code> with the driver of your printer (eg. <code>pkgs.gutenprintBin</code>). The driver is a regular derivation but should be added to <syntaxhighlight lang="nix" inline>services.printing.drivers</syntaxhighlight>, ''not'' <syntaxhighlight lang="nix" inline>environment.systemPackages</syntaxhighlight>. [https://nixos.org/nixos/packages.html Search] for eg. "print driver". | ||
* Some printers might be supported by the built-in CUPS drivers | * Some printers might be supported by the built-in CUPS drivers | ||