How to configure "hardware.printers.ensurePrinters"?

I don’t understand how to configure hardware.printers.ensurePrinters (NixOS Search) with its associated options. I don’t know what should go into this option and its children like hardware.printers.ensurePrinters.*.name - i don’t even know with what to replace the asterix with…

It would be great if someone could post an example configuration. The Printing article in the wiki doesn’t explain this option unfortunately.

@florianjacob @edolstra @Infinisil @worldofpeace

Example: https://github.com/grahamc/nixos-config/blob/35388280d3b06ada5882d37c5b4f6d3baa43da69/devices/petunia/configuration.nix#L573

1 Like

Ah i see, thank you! :slightly_smiling_face:

Is it corect to write model = "drv:///brlaser.drv/brl2320d.ppd"; or do i need to shorten it? In your configuration it’s a bit different…