nixpkgs-suyu/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 salt-minion: link to configuration documentation 2017-05-11 07:12:04 +01:00
amqp
audio nixos/mpd: allow configuring playlist directory (#28252) 2017-08-20 20:34:34 +00:00
backup znapzend service: options for logging/nodestroy/restart on failure 2017-05-22 21:47:51 +01:00
cluster lib: introduce imap0, imap1 (#25543) 2017-07-04 23:29:23 +01:00
computing slurm: 15-08-5-1 -> 17.02.6, slurm-llnl -> slurm 2017-07-13 03:13:05 -04:00
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 gnome-disks: add D-Bus service 2017-05-06 19:40:37 +02:00
development
editors replace "Mac OS X" and "OS X" with "macOS" 2017-08-07 21:41:30 +02:00
games Factorio service: fix typo in attribute path 2017-07-20 20:32:25 +02:00
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 fcron: install systab 2017-04-23 11:44:04 +02:00
search ELK: update kibana and the elastic beats to 5.4 (#26252) 2017-06-13 22:36:08 +02:00
security nixos/usbguard: create package and module (#28363) 2017-08-25 23:35:18 +01:00
system Merge pull request #26419 from roblabla/feature-sasl 2017-07-20 20:23:52 +02:00
torrent treewide: use boolToString function 2017-04-11 18:18:53 +02:00
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