diff options
author | ene <ene@sils.li> | 2023-02-18 23:28:23 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-18 23:28:23 +0100 |
commit | 1fce74309e9d7d30dae5b822a1a683737a7b0337 (patch) | |
tree | 17a84de31d02a7abd46daed4fd8057cb020837a1 /services/printing | |
parent | Fix: Ignore Session.vim Files (diff) | |
download | nixos-config-1fce74309e9d7d30dae5b822a1a683737a7b0337.tar.gz nixos-config-1fce74309e9d7d30dae5b822a1a683737a7b0337.zip |
Fix: Add scanning and full printing support
Diffstat (limited to 'services/printing')
-rw-r--r-- | services/printing/default.nix | 21 |
1 files changed, 18 insertions, 3 deletions
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]; + }; } |