From 798a8fab691bcac9855cf5c90d8c3498d1b70329 Mon Sep 17 00:00:00 2001 From: GarandPLG Date: Sat, 7 Nov 2026 13:44:19 +0100 Subject: [PATCH] Add Vulkan tools, enable nixGL, improve CUPS service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- modules/core/packages/essentials.nix | 1 + modules/core/printing.nix | 11 +++++++++++ modules/home/default.nix | 1 + modules/home/nixgl.nix | 3 +++ modules/home/prismlauncher.nix | 1 + 5 files changed, 17 insertions(+) create mode 100644 modules/home/nixgl.nix diff --git a/modules/core/packages/essentials.nix b/modules/core/packages/essentials.nix index faff0f9..a0645bc 100644 --- a/modules/core/packages/essentials.nix +++ b/modules/core/packages/essentials.nix @@ -12,6 +12,7 @@ bitwarden-cli xdg-utils gcc + vulkan-tools # File management trash-cli file-roller diff --git a/modules/core/printing.nix b/modules/core/printing.nix index a939e2e..c0c9885 100644 --- a/modules/core/printing.nix +++ b/modules/core/printing.nix @@ -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; diff --git a/modules/home/default.nix b/modules/home/default.nix index 8819b0c..8bf7de8 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -32,6 +32,7 @@ _: { ./mangohud.nix ./nextcloud.nix ./nix-search-tv.nix + ./nixgl.nix ./nixpkgs.nix ./obs-studio.nix ./ollama.nix diff --git a/modules/home/nixgl.nix b/modules/home/nixgl.nix new file mode 100644 index 0000000..9744166 --- /dev/null +++ b/modules/home/nixgl.nix @@ -0,0 +1,3 @@ +_: { + targets.genericLinux.nixGL.vulkan.enable = true; +} diff --git a/modules/home/prismlauncher.nix b/modules/home/prismlauncher.nix index 4af7837..fac63b0 100644 --- a/modules/home/prismlauncher.nix +++ b/modules/home/prismlauncher.nix @@ -24,5 +24,6 @@ in { config.programs.prismlauncher = lib.mkIf config.prismlauncher.enable { enable = true; package = prismlauncher-cracked-fixed; + # package = inputs.prismlauncher-cracked.packages.${system}.default; }; }