summary refs log tree commit diff
path: root/nixos/modules/services/printing
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-05-30 10:52:28 -0400
committerGitHub <noreply@github.com>2019-05-30 10:52:28 -0400
commit38fdc9f8f84dc35179db18d0295d1eb5ee3e8c59 (patch)
treecbc753ca6eacad44883360b1fefa8e111155161f /nixos/modules/services/printing
parent0ced576a9e83f14a12e5ebf728d5f36ec93af0e6 (diff)
parent631c71da83739bb7e5360370afa14afa75846ffe (diff)
downloadnixpkgs-38fdc9f8f84dc35179db18d0295d1eb5ee3e8c59.tar
nixpkgs-38fdc9f8f84dc35179db18d0295d1eb5ee3e8c59.tar.gz
nixpkgs-38fdc9f8f84dc35179db18d0295d1eb5ee3e8c59.tar.bz2
nixpkgs-38fdc9f8f84dc35179db18d0295d1eb5ee3e8c59.tar.lz
nixpkgs-38fdc9f8f84dc35179db18d0295d1eb5ee3e8c59.tar.xz
nixpkgs-38fdc9f8f84dc35179db18d0295d1eb5ee3e8c59.tar.zst
nixpkgs-38fdc9f8f84dc35179db18d0295d1eb5ee3e8c59.zip
Merge pull request #59076 from Yarny0/cups-path-fix
nixos/printing: fix CUPS `SetEnv` directive placement
Diffstat (limited to 'nixos/modules/services/printing')
-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 9e9bdedff12..86b0c8d69be 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 /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"}