summary refs log tree commit diff
path: root/nixos/modules/services/printing
Commit message (Collapse)AuthorAge
* nixos/doc: clean up defaults and examplesNaïm Favier2021-10-04
|
* nixos/printing: simplify filterGutenprint functionSamuel Gräfenstein2021-03-14
|
* nixos/printing: remove google cloud printSandro Jäckel2021-02-18
|
* nixos/printing: make access to web-interface configurableMaximilian Bosch2020-04-25
| | | | | Otherwise you'd always get a 403 when hosting the web-interface of cups at a different location than `localhost`.
* treewide: use attrs instead of list for types.loaOf optionsrnhmjoj2020-01-06
|
* nixos/treewide: Move rename.nix imports to their respective modulesSilvan Mosberger2019-12-10
| | | | | | | | A centralized list for these renames is not good because: - It breaks disabledModules for modules that have a rename defined - Adding/removing renames for a module means having to find them in the central file - Merge conflicts due to multiple people editing the central file
* cups: fix misleading commentcaadar2019-10-28
|
* Merge pull request #68218 from worldofpeace/cups-pk/no-auth-wheelworldofpeace2019-09-09
|\ | | | | nixos/cupsd: passwordless admin for wheel with polkit
| * nixos/cupsd: passwordless admin for wheel with polkitworldofpeace2019-09-06
| |
* | treewide: remove redundant quotesvolth2019-08-26
|/
* cups: add myself as maintainerMatthew Bauer2019-08-14
|
* nixos/cupsd: use socket-based activation by defaultMatthew Bauer2019-08-14
| | | | | Make socket-based activation the default (services.printing.startWhenNeeded)
* nixos/cupsd: include /run/cups/cups.sock in ListenStreamsMatthew Bauer2019-08-14
| | | | This socket should always be created by systemd.
* nixos/cupsd: only enable cups when startWhenNeeded = falseMatthew Bauer2019-08-14
| | | | | cups-browsed was pulling in cups.service even when we were using the socket-based initialization.
* nixos/cupsd: Set CUPS_DATADIR globallyMatthew Bauer2019-08-14
| | | | | This is used by some programs that need CUPS data files. For instance, print-manager looks here for printing test pages.
* Merge pull request #59076 from Yarny0/cups-path-fixMatthew Bauer2019-05-30
|\ | | | | nixos/printing: fix CUPS `SetEnv` directive placement
| * nixos/printing: fix CUPS `SetEnv` directive placementYarny02019-04-05
| | | | | | | | | | | | | | | | | | | | | | With CUPS v2.3b5, the configuration directive `SetEnv` moved from `cupsd.conf` to `cups-files.conf`. See also https://github.com/apple/cups/commit/d47f6aec436e0e9df6554436e391471097686ecc . We have to follow up as `SetEnv` is now ignored in `cupsd.conf`. Without this, executables called by cups can't find other executables they depend on, like `gs` or `perl`.
* | nixos/cups: /var/run -> /runBob van der Linden2019-03-24
|/
* nixos: add preferLocalBuild=true; on derivations for config filesSymphorien Gibol2019-02-22
|
* nixos/cups: Fix Unable to encrypt connection:Florian Jacob2019-02-14
| | | | | Unable to create server credentials by creating /var/lib/cups/ssl directory.
* cups-googlecloudprint: init at 20160502obadz2018-10-11
|
* nixos/cupsd: add option to start when neededJohannes Frankenau2018-07-14
|
* nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink2018-06-30
|
* nixos/cupsd: Introduce services.printing.logLevel optionBen Gamari2018-04-27
| | | | | | | 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.
* cups service: fix client socketsNikolay Amiantov2018-02-23
| | | | | | 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.
* cups service: Automatically detect Gutenprint in driversMichael Weiss2017-08-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Merge pull request #27031 from jerith666/cnijfilter-2-80Benno Fünfstück2017-07-18
|\ | | | | cnijfilter: init at 2.80
| * cnijfilter: init at 2.80Matt McHenry2017-07-17
| | | | | | | | | | this driver reads support files from lib/bjlib as well as lib/cups, which is why the path in cupsd.nix is tweaked
* | cups: mount private /tmpJörg Thalheim2017-05-10
|/ | | | | | | | | | | | 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.
* cups: split the $lib outputVladimír Čunát2017-03-12
| | | | | This saves > 10 MB from most closures. Printing test succeeds on x86_64-linux.
* use symlink to ensure cupsd.conf PATH always points to a valid store pathMatt McHenry2016-12-13
| | | | | | 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.
* treewide: cups_filters -> cups-filtersBjørn Forsman2016-08-25
|
* cups service: use cups.out everywhereJoachim Fasting2016-04-16
| | | | | Seeing as the dev output is the default, we probably want cups.out everywhere.
* cups service: fix missing upstream systemd units caused by output splittingJoachim Fasting2016-04-16
| | | | | | | | 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
* Merge branch 'master' into closure-sizeVladimír Čunát2016-04-01
|\ | | | | | | | | Beware that stdenv doesn't build. It seems something more will be needed than just resolution of merge conflicts.
| * cups service: fix gutenprint update when there's no printersNikolay Amiantov2016-03-15
| |
| * modules/cupsd: clarify how to set gutenprintProfpatsch2016-03-08
| |
* | Merge master into closure-sizeVladimír Čunát2016-03-08
|\| | | | | | | | | The kde-5 stuff still didn't merge well. I hand-fixed what I saw, but there may be more problems.
| * cups service: set path for cups-genppdupdateNikolay Amiantov2016-02-26
| |
* | Merge recent 'staging' into closure-sizeVladimír Čunát2016-02-03
|\| | | | | | | Let's get rid of those merge conflicts.
| * cupsd service: move root directory to /var/lib/cupsNikolay Amiantov2016-01-17
| |
| * cupsd service: don't allow overriding necessary configuration optionsNikolay Amiantov2016-01-17
| |
| * cupsd service: add gutenprint supportNikolay Amiantov2016-01-17
| |
| * cupsd service: move all default drivers to the bindir directlyNikolay Amiantov2016-01-17
| |
| * cupsd service: use cups-pk-helper is policykit is enabledNikolay Amiantov2016-01-17
| |
* | treewide: Mass replace 'cups}/lib' to refer the 'out' outputTuomas Tynkkynen2016-01-24
|/
* nixos cups-browsed: better link to avahi-daemonThomas Strobel2015-12-21
| | | | Link cups browsed daemon to reload or exit with the avahi-daemon.
* nixos: add services.printing.snmpConf optionBjørn Forsman2015-08-13
| | | | | | | | | | 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.
* cups-browsed: Only enable if avahi is enabledEelco Dolstra2015-08-04
| | | | | | 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.
* Revert "cups: Rename "browsing" config option to "advertise""Jascha Geerds2015-05-10
| | | | This reverts commit 48e65cec4ecd6bef08233460cf5ffedb023cc7c6.