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
@@ -12,6 +12,7 @@
|
||||
bitwarden-cli
|
||||
xdg-utils
|
||||
gcc
|
||||
vulkan-tools
|
||||
# File management
|
||||
trash-cli
|
||||
file-roller
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -32,6 +32,7 @@ _: {
|
||||
./mangohud.nix
|
||||
./nextcloud.nix
|
||||
./nix-search-tv.nix
|
||||
./nixgl.nix
|
||||
./nixpkgs.nix
|
||||
./obs-studio.nix
|
||||
./ollama.nix
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
_: {
|
||||
targets.genericLinux.nixGL.vulkan.enable = true;
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user