summary refs log tree commit diff
path: root/nixos/modules/services/printing/cupsd.nix
diff options
context:
space:
mode:
authorYarny0 <41838844+Yarny0@users.noreply.github.com>2019-04-05 07:32:26 +0200
committerYarny0 <41838844+Yarny0@users.noreply.github.com>2019-04-05 14:23:59 +0200
commit631c71da83739bb7e5360370afa14afa75846ffe (patch)
tree828c25853af8e37e50cf83cc7e974db9b0adcdcb /nixos/modules/services/printing/cupsd.nix
parentd956f2279b8ac02bd9e48cf2a09dcb66383ab6be (diff)
downloadnixpkgs-631c71da83739bb7e5360370afa14afa75846ffe.tar
nixpkgs-631c71da83739bb7e5360370afa14afa75846ffe.tar.gz
nixpkgs-631c71da83739bb7e5360370afa14afa75846ffe.tar.bz2
nixpkgs-631c71da83739bb7e5360370afa14afa75846ffe.tar.lz
nixpkgs-631c71da83739bb7e5360370afa14afa75846ffe.tar.xz
nixpkgs-631c71da83739bb7e5360370afa14afa75846ffe.tar.zst
nixpkgs-631c71da83739bb7e5360370afa14afa75846ffe.zip
nixos/printing: fix CUPS `SetEnv` directive placement
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`.
Diffstat (limited to 'nixos/modules/services/printing/cupsd.nix')
-rw-r--r--nixos/modules/services/printing/cupsd.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix
index 854c76cc0a1..72db9115fef 100644
--- a/nixos/modules/services/printing/cupsd.nix
+++ b/nixos/modules/services/printing/cupsd.nix
@@ -60,6 +60,8 @@ let
 
     TempDir ${cfg.tempDir}
 
+    SetEnv PATH /var/lib/cups/path/lib/cups/filter:/var/lib/cups/path/bin
+
     # User and group used to run external programs, including
     # those that actually send the job to the printer.  Note that
     # Udev sets the group of printer devices to `lp', so we want
@@ -76,8 +78,6 @@ let
     '') cfg.listenAddresses}
     Listen /var/run/cups/cups.sock
 
-    SetEnv PATH /var/lib/cups/path/lib/cups/filter:/var/lib/cups/path/bin
-
     DefaultShared ${if cfg.defaultShared then "Yes" else "No"}
 
     Browsing ${if cfg.browsing then "Yes" else "No"}