From 1fce74309e9d7d30dae5b822a1a683737a7b0337 Mon Sep 17 00:00:00 2001 From: ene Date: Sat, 18 Feb 2023 23:28:23 +0100 Subject: Fix: Add scanning and full printing support --- services/printing/default.nix | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'services/printing/default.nix') diff --git a/services/printing/default.nix b/services/printing/default.nix index d178e3b6..3b193eab 100644 --- a/services/printing/default.nix +++ b/services/printing/default.nix @@ -1,4 +1,19 @@ -{config, ...}: { - # Enable CUPS to print documents. - services.printing.enable = true; +# vim: ts=2 +{ + config, + pkgs, + ... +}: { + services.printing = { + enable = true; + webInterface = false; # don't enable the webinterface + drivers = with pkgs; [ + gutenprint + ]; + }; + hardware.sane = { + # TODO this properly won't work like this + enable = true; + extraBackends = [pkgs.sane-airscan]; + }; } -- cgit 1.4.1