-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declarative cups configuration #52776
Comments
I actually ran into problems with the imperative configuration. I configured my printer (samsung scx3200) and after a system upgrade i was unable to print anymore. An error was shown in the cups web interface for the printer: "unable to load PPD, /nix/store/.... no such file or directory". It looks like the driver i used was garbage-collected. |
Interestingly for my driver it just copy them to |
I created a half-stateful solution similar to |
PR: #55510 please go and test it. :) |
Upvote this! Will test 55510 on weekend. (looks better, than my own unconditional injection of ppd into /var/.../cups) |
Hi, I just stumbled over this issue by accident and realized I'm using something similar in my machines own printing config. So I'm thinking it might help you if I'd share this code with you. Sorry for just dumping this file here. I've been planning to clean it up and suggest my module via a pull-request on its own, but I haven't found the time to do so yet. Still, I hope my module contains some usable ideas towards declarative printer config (e.g. set options, and check that each declared printer has its backend and ppd file installed). |
Issue description
Allow configuration of a cups printer by pointing at a ppd file and specifying a single URL in configuration.nix.
Currently, such configuration requires clicking through a web-interface.
Technical details
18.09
The text was updated successfully, but these errors were encountered: