nixpkgs/nixos
Yarny0 49a129ab40 nixos/cups-pdf: init
Some implementation notes:

* cups-pdf, and cups-pdf-to-pdf,
  support multiple instances with differing configurations.
  This can be accomplished by creating multiple configuration
  files with names `cups-pdf-{instance-name}.conf`.
  The Nixos module supports this feature by providing
  the option `instances` which is an attrset
  mapping instance names to instance configurations.
  To simplify module usage,
  an instance `pdf` is created by default.

* To use a cups-pdf instance, one also needs
  a cups queue that connects to the backend.
  The module does this automatically by default,
  using the `hardware.printers.ensurePrinters`.
  It uses one of the ppd files which is
  included in the cups-pdf package.
  If this isn't desired (e.g. because printer queues
  should be created by hand, or configured differently),
  the `installPrinter` option can be turned off
  (for each instance separately).

* In our configuration, cups calls external programs
  using the `cups` account and the `lp` group.
  cups-pdf refuses to operate without root privileges,
  likely because it needs to change the
  ownership of it output pdf files so that
  (only) the print job's owner can access them.

  The module installs a suid root wrapper for the backend
  program that can only be called by the `lp` group.
  The cups-pdf package is replaced by a wrapper
  package which calls the suid root wrapper.
  So cups can call its backend programs as usual.
2022-12-09 22:20:09 +01:00
..
doc Merge pull request #202369 from laalsaas/blesh 2022-12-07 18:47:36 +01:00
lib nixos/make-options-doc: improve CommonMark formatting 2022-12-07 14:39:26 +00:00
maintainers nixos/ec2: remove paravirtualization-specific code 2022-11-23 17:18:18 +01:00
modules nixos/cups-pdf: init 2022-12-09 22:20:09 +01:00
tests nixos/tests/bazarr: remove unfree predicate for unrar 2022-12-07 14:59:49 +01:00
COPYING
default.nix
README
release-combined.nix Merge pull request #197254 from Atemu/fstab-escape-options 2022-11-19 18:08:40 +01:00
release-small.nix nixos/release: add acme to tested set 2022-10-25 07:22:27 +10:00
release.nix nixos/release-combined: Build graphical ISOs for aarch64-linux 2022-10-11 15:33:41 +02:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.