Add Vulkan tools, enable nixGL, improve CUPS service
CUPS now runs a post‑start script that provisions printers but forces failure to be ignored, preventing provisioning errors from stopping the service. This also adds a nixGL configuration enabling Vulkan support.
This commit is contained in:
1 parent
d777e4467d
commit
798a8fab69
5 files changed
+17
No files matched your search
@@ -1,4 +1,5 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
printEnable,
|
||||
@@ -6,6 +7,16 @@
|
||||
ensurePrinters,
|
||||
...
|
||||
}: {
|
||||
systemd.services.cups = lib.mkIf printEnable {
|
||||
# IPP Everywhere provisioning needs online printers; failure must not stop CUPS.
|
||||
serviceConfig.ExecStartPost = lib.mkForce [
|
||||
"-${pkgs.writeShellScript "cups-provision-printers" ''
|
||||
set -e
|
||||
${config.systemd.services.cups.postStart}
|
||||
''}"
|
||||
];
|
||||
};
|
||||
|
||||
services = lib.mkIf printEnable {
|
||||
printing = {
|
||||
enable = true;
|
||||
|
||||
Reference in new issue
Block a user