nixpkgs/nixos/modules
Michael Weiss ea23f8bb07 cups service: Automatically detect Gutenprint in drivers
Additional CUPS drivers can be added via "services.printing.drivers" but
Gutenprint was an exception. It was possible to add a Gutenprint
derivation to that list and it would work at first but unlike the other
drivers Gutenprint requires a script to be run after each update or any
attempt to print something would simply fail and an error would show up
in the jobs queue (http://localhost:631/jobs/):
"The PPD version (5.2.11) is not compatible with Gutenprint 5.2.13.
Please run
`/nix/store/7762kpyhfkcgmr3q81v1bbyy0bjhym80-gutenprint-5.2.13/sbin/cups-genppdupdate'
as administrator."
This is due to state in "/var/lib/cups/ppd" and one would need to run
"/nix/store/.../bin/cups-genppdupdate -p /var/lib/cups/ppd" manually.
The alternative was to enable the following option:
"services.printing.gutenprint" but this had two disadvantages:
1) It is an exception that one could be unaware of or that could
potentially cause some confusion.
2) One couldn't use a customized Gutenprint derivation in
"services.printing.drivers" but would instead have to overwrite
"pkgs.gutenprint".

This new approach simply detects a Gutenprint derivation in
"services.printing.gutenprint" by checking if the meta set of a
derivation contains "isGutenprint = true". Therefore no special
exception for Gutenprint would be required and it could easily be
applied to other drivers if they would require such a script to be run.
2017-08-29 05:25:12 +04:00
..
config nixos: add pathes for KDE applications 2017-08-06 12:55:10 +03:00
hardware nixos/hardware/raid/hpsa: init at 2.40 2017-08-01 12:52:04 +00:00
i18n/input-method Remove top-level kde5 attribute 2017-02-27 11:49:10 -06:00
installer nix: 1.11.12 -> 1.11.13 2017-07-18 10:54:01 +02:00
misc ddclient: assign group for ddclient 2017-08-13 21:56:48 +08:00
profiles nixos/hardened profile: increase ASLR entropy 2017-08-13 21:44:13 +02:00
programs nixos: Fix build of manual 2017-08-25 14:08:11 +02:00
security nixos: Fix pam_kwallet5 integration 2017-08-22 11:52:14 -04:00
service-managers Simple proof of concept for how to do other types of services 2017-05-26 18:14:31 -04:00
services cups service: Automatically detect Gutenprint in drivers 2017-08-29 05:25:12 +04:00
system Revert "boot.kernelParams: dedup and sort" 2017-08-26 15:45:24 +01:00
tasks zfs, spl: 0.6.5.11 -> 0.7.0 2017-07-27 19:00:54 +02:00
testing buildLinux: allow overriding stdenv on each call 2017-08-20 08:24:52 +02:00
virtualisation libvirtd module: add qemu_kvm to path 2017-08-28 12:54:41 +02:00
module-list.nix Merge pull request #27833 from volth/hpsa-2.40 2017-08-26 23:10:57 +00:00
rename.nix cups service: Automatically detect Gutenprint in drivers 2017-08-29 05:25:12 +04:00