1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-18 02:46:28 +00:00
nixpkgs/nixos/modules/services
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
..
admin/salt
amqp
audio nixos/mpd: allow configuring playlist directory (#28252) 2017-08-20 20:34:34 +00:00
backup
cluster
computing
continuous-integration nixos/hail: init (#28442) 2017-08-23 18:23:13 +00:00
databases Merge pull request #27796 from LumiGuide/postage 2017-08-13 20:59:06 +00:00
desktops
development
editors replace "Mac OS X" and "OS X" with "macOS" 2017-08-07 21:41:30 +02:00
games
hardware nixos/tlp: mask systemd-rfkill socket 2017-08-25 10:09:25 +02:00
logging graylog module: adapt to Graylog version 2.3.0 2017-08-11 13:07:30 +02:00
mail Merge pull request #28123 from jerith666/post-fix-up 2017-08-11 09:36:58 +02:00
misc nixos/airsonic: remove full-path commands from preStart 2017-08-25 23:18:46 +01:00
monitoring prometheus-unifi-exporter: make ordering more robust 2017-08-22 20:26:18 +02:00
network-filesystems ipfs: added defaultMode, added norouting service 2017-08-17 03:30:57 +02:00
networking lldpd: 0.9.7 -> 0.9.8 2017-08-27 02:33:32 +02:00
printing cups service: Automatically detect Gutenprint in drivers 2017-08-29 05:25:12 +04:00
scheduling
search
security nixos/usbguard: create package and module (#28363) 2017-08-25 23:35:18 +01:00
system
torrent
ttys nixos/agetty: override upstream default 2017-08-13 19:07:38 +02:00
web-apps sks and pgpkeyserver-lite modules: init (#27515) 2017-08-22 12:27:00 +02:00
web-servers phpfpm service: allow netlink sockets for sendmail 2017-08-29 00:41:31 +02:00
x11 Merge pull request #27096 from gnidorah/maxx 2017-08-25 06:40:31 +01:00