Merge pull request #59076 from Yarny0/cups-path-fix

nixos/printing: fix CUPS `SetEnv` directive placement
This commit is contained in:
Matthew Bauer 2019-05-30 10:52:28 -04:00 committed by GitHub
commit 38fdc9f8f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 /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"}