From c32fc4e3cbcd7908dfeb9f843f55199e6e44ddf6 Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Wed, 14 Jan 2026 21:28:30 +0100 Subject: [PATCH] add printing and scanning support --- modules/desktop/plasma.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/modules/desktop/plasma.nix b/modules/desktop/plasma.nix index 75398be..e56c404 100644 --- a/modules/desktop/plasma.nix +++ b/modules/desktop/plasma.nix @@ -34,7 +34,7 @@ # Use wayland in electron apps environment.sessionVariables.NIXOS_OZONE_WL = "1"; environment.systemPackages = - lib.pipe pkgs.kdePackages.sources [ + (lib.pipe pkgs.kdePackages.sources [ builtins.attrNames (builtins.map (n: pkgs.kdePackages.${n})) (builtins.filter (pkg: !pkg.meta.broken)) @@ -54,7 +54,22 @@ # Exclude plasma-mobile (builtins.filter (pkg: pkg.pname != "plasma-mobile")) + ]) ++ [ + # Printing support in Plasma settings + pkgs.system-config-printer ]; + + services.printing = { + enable = true; + drivers = [ pkgs.hplip ]; + }; + + hardware.sane = { + enable = true; + extraBackends = [ pkgs.hplipWithPlugin ]; + }; + services.avahi.enable = true; + }; } \ No newline at end of file