From 6bb5aa2d26b12f984d9d35840a064268d4530c8e Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Sat, 4 Jan 2025 18:04:17 +0100 Subject: [PATCH] nixos/printers: Fix ShellCheck issue Fixes the following warning when setting `systemd.enableStrictShellChecks = true`: > In /nix/store/a3mk99mgl10a4k3maxx361hdli5p2rip-unit-script-ensure-printers-start/bin/ensure-printers-start line 6: > /nix/store/26fb46gwc5sbd045nj3dxw4zqpml359i-cups-2.4.11/bin/lpadmin -D 'virtual printer for cups-pdf instance pdf' -L '/var/spool/cups-pdf-pdf/users/${USER}' -m CUPS-PDF_opt.ppd -p pdf -v cups-pdf:/pdf -E > ^-- SC2016 (info): Expressions don't expand in single quotes, use double quotes for that. --- nixos/modules/hardware/printers.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/hardware/printers.nix b/nixos/modules/hardware/printers.nix index 6dc8ceec45db..8dbfea78a516 100644 --- a/nixos/modules/hardware/printers.nix +++ b/nixos/modules/hardware/printers.nix @@ -28,6 +28,7 @@ let ); in '' + # shellcheck disable=SC2016 ${pkgs.cups}/bin/lpadmin ${args} -E '';