git.iko.soy/typeable/nixpkgs
on master help sign in
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`.

commit631c71da83739bb7e5360370afa14afa75846ffe authorYarny0 <41838844+Yarny0@users.noreply.github.com> dateFri 5 Apr 2019, 07:32 (8 years ago) parentd956f22
1 file changed+2−2
nixos/modules/services/printing/cupsd.nix+2−2
nixos/modules/services/printing/cupsd.nix+2−2
@@ -60,6 +60,8 @@ let
6060
6161 TempDir ${cfg.tempDir}
6262
63+ SetEnv PATH /var/lib/cups/path/lib/cups/filter:/var/lib/cups/path/bin
64+
6365 # User and group used to run external programs, including
6466 # those that actually send the job to the printer. Note that
6567 # Udev sets the group of printer devices to `lp', so we want
@@ -76,8 +78,6 @@ let
7678 '') cfg.listenAddresses}
7779 Listen /var/run/cups/cups.sock
7880
79− SetEnv PATH /var/lib/cups/path/lib/cups/filter:/var/lib/cups/path/bin
80−
8181 DefaultShared ${if cfg.defaultShared then "Yes" else "No"}
8282
8383 Browsing ${if cfg.browsing then "Yes" else "No"}