about summary refs log tree commit diff
path: root/nixos/modules/services/printing
AgeCommit message (Collapse)AuthorFilesLines
2018-07-14nixos/cupsd: add option to start when neededJohannes Frankenau1-1/+16
2018-06-30nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink1-1/+1
2018-04-27nixos/cupsd: Introduce services.printing.logLevel optionBen Gamari1-3/+12
Previously we indirectly suggested that the user use services.printing.extraConf to set this, but this doesn't work with the default merge ordering. Fix this by making it an independent option. Fixes #39611.
2018-02-23cups service: fix client socketsNikolay Amiantov1-2/+5
Use systemd to create the directory for UNIX socket. Also use localhost instead of 127.0.0.1 as is done in default cupsd.conf so that IPv6 is enabled when available.
2017-08-29cups service: Automatically detect Gutenprint in driversMichael Weiss1-18/+14
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-07-18Merge pull request #27031 from jerith666/cnijfilter-2-80Benno Fünfstück1-1/+1
cnijfilter: init at 2.80
2017-07-17cnijfilter: init at 2.80Matt McHenry1-1/+1
this driver reads support files from lib/bjlib as well as lib/cups, which is why the path in cupsd.nix is tweaked
2017-05-10cups: mount private /tmpJörg Thalheim1-0/+2
printer driver and wrapper are often not written with security in mind. While reviewing https://github.com/NixOS/nixpkgs/pull/25654 I found a symlink-race vulnerability within the wrapper code, when writing unique files in /tmp. I expect this script to be reused in other models as well as similar vulnerabilities in the code of other vendors. Therefore I propose to make /tmp of cups.service private so that only processes with the same privileges are able to access these files.
2017-03-12cups: split the $lib outputVladimír Čunát1-0/+1
This saves > 10 MB from most closures. Printing test succeeds on x86_64-linux.
2016-12-13use symlink to ensure cupsd.conf PATH always points to a valid store pathMatt McHenry1-1/+8
even if cups rewrites its config file due to config changes made through its web-based management UI, we need to keep the PATH pointing to currently-live nix store directories. fixes #20806.
2016-08-25treewide: cups_filters -> cups-filtersBjørn Forsman1-3/+3
2016-04-16cups service: use cups.out everywhereJoachim Fasting1-4/+4
Seeing as the dev output is the default, we probably want cups.out everywhere.
2016-04-16cups service: fix missing upstream systemd units caused by output splittingJoachim Fasting1-1/+1
Need to pass `cups.out` to `systemd.packages`, lest we end up with an invalid generated unit containing only directives set in the service module. This patch gives us a valid cups.service unit but, vexingly, does not fix the test failure at NixOS/nixpkgs#14748
2016-04-01Merge branch 'master' into closure-sizeVladimír Čunát1-2/+5
Beware that stdenv doesn't build. It seems something more will be needed than just resolution of merge conflicts.
2016-03-15cups service: fix gutenprint update when there's no printersNikolay Amiantov1-1/+3
2016-03-08modules/cupsd: clarify how to set gutenprintProfpatsch1-1/+2
2016-03-08Merge master into closure-sizeVladimír Čunát1-1/+1
The kde-5 stuff still didn't merge well. I hand-fixed what I saw, but there may be more problems.
2016-02-26cups service: set path for cups-genppdupdateNikolay Amiantov1-1/+1
2016-02-03Merge recent 'staging' into closure-sizeVladimír Čunát1-79/+109
Let's get rid of those merge conflicts.
2016-01-24treewide: Mass replace 'cups}/lib' to refer the 'out' outputTuomas Tynkkynen1-4/+4
2016-01-17cupsd service: move root directory to /var/lib/cupsNikolay Amiantov1-13/+35
2016-01-17cupsd service: don't allow overriding necessary configuration optionsNikolay Amiantov1-59/+53
2016-01-17cupsd service: add gutenprint supportNikolay Amiantov1-1/+14
2016-01-17cupsd service: move all default drivers to the bindir directlyNikolay Amiantov1-6/+4
2016-01-17cupsd service: use cups-pk-helper is policykit is enabledNikolay Amiantov1-4/+7
2015-12-21nixos cups-browsed: better link to avahi-daemonThomas Strobel1-0/+2
Link cups browsed daemon to reload or exit with the avahi-daemon.
2015-08-13nixos: add services.printing.snmpConf optionBjørn Forsman1-0/+12
And set the default value to "Address @LOCAL". This change is needed to find printers at my workplace (with "lpinfo -v" or the "system-config-printer" GUI). Ubuntu 14.04 also has this as default. snmp.conf does not seem to be needed in restartTriggers, because it is not the cups daemon itself that reads it, but some helper programs that it spawns on demand.
2015-08-04cups-browsed: Only enable if avahi is enabledEelco Dolstra1-2/+2
This gets rid of systemd[1]: Cannot add dependency job for unit avahi-daemon.service, ignoring: Unit avahi-daemon.service failed to load: No such file or directory.
2015-05-10Revert "cups: Rename "browsing" config option to "advertise""Jascha Geerds1-2/+2
This reverts commit 48e65cec4ecd6bef08233460cf5ffedb023cc7c6.
2015-05-10cups: Rename "browsing" config option to "advertise"Jascha Geerds1-2/+2
2015-05-10cups: Add defaultShared, browsing and webInterace config optionJascha Geerds1-1/+29
2015-05-10cups: Remove deprecated config options from cupsd.confJascha Geerds1-2/+0
2015-05-10cups: Use systemd files provided by CUPSJascha Geerds1-6/+3
2015-03-12cupsd: rename `cupsd.service` to `cups.service`Kirill Elagin1-1/+1
2015-01-16Create a nixos module for cups-browsedDamien Cassou1-1/+31
2014-12-16cups: Build with SERVERROOT set to /etc/cupsEelco Dolstra1-20/+11
2014-12-16cupsd.nix: Clean up environment.etcEelco Dolstra1-11/+3
2014-12-16nixos/cupsd: use cups-files.conftv@shackspace.de1-12/+34
2014-11-27fix printing testDomen Kožar1-0/+15
2014-11-24nixos/cupsd: Ignore collisions in cups-progs.aszlig1-0/+1
There currently are collisions between the main CUPS package and the filters package, which are: * $storepath/share/cups/banners/classified * $storepath/share/cups/banners/confidential * $storepath/share/cups/banners/secret * $storepath/share/cups/banners/standard * $storepath/share/cups/banners/topsecret * $storepath/share/cups/banners/unclassified * $storepath/share/cups/data/testprint And they actually have different content, so let's ignore those for now until we have a better fix. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-11-23cups-pdf-filter -> cups-filters, enable by default for cupsDomen Kožar1-2/+2
2014-11-23Remove cups_pdf_filter from the default set - adding to default set is ↵Michael Raskin1-1/+1
easier than removing...
2014-11-15Revert "cups: update package"Michael Raskin1-1/+1
This reverts commit aa548af5a5e997b94df41b1da57232bd10b76612.
2014-11-15Revert "cups-filters: add package"Michael Raskin1-1/+1
This reverts commit f7ba33de561aac0beccd0eebb7a3a8499aab46eb.
2014-11-14cups-filters: add packageNikolay Amiantov1-1/+1
2014-11-14cups: update packageNikolay Amiantov1-1/+1
2014-08-20CUPS system wide client configuration.Edward Tjörnhammar1-1/+23
2014-04-25cups: Add a listenAddresses optionEelco Dolstra1-1/+12
2014-04-24cups: Start after network.targetEelco Dolstra1-2/+3
http://hydra.nixos.org/build/10661709
2014-04-14Rewrite ‘with pkgs.lib’ -> ‘with lib’Eelco Dolstra1-2/+2
Using pkgs.lib on the spine of module evaluation is problematic because the pkgs argument depends on the result of module evaluation. To prevent an infinite recursion, pkgs and some of the modules are evaluated twice, which is inefficient. Using ‘with lib’ prevents this problem.