Merge pull request #119706 from nyanotech/master

nixos/printers: fix ensureDefaultPrinter
This commit is contained in:
Sandro 2021-04-24 03:49:09 +02:00 committed by GitHub
commit e3e6b73701
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ let
${ppdOptionsString p.ppdOptions}
'';
ensureDefaultPrinter = name: ''
${pkgs.cups}/bin/lpoptions -d '${name}'
${pkgs.cups}/bin/lpadmin -d '${name}'
'';
# "graph but not # or /" can't be implemented as regex alone due to missing lookahead support