aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorene <ene@sils.li>2023-02-18 23:28:23 +0100
committerene <ene@sils.li>2023-02-18 23:28:23 +0100
commit1fce74309e9d7d30dae5b822a1a683737a7b0337 (patch)
tree17a84de31d02a7abd46daed4fd8057cb020837a1 /services
parentFix: Ignore Session.vim Files (diff)
downloadnixos-config-1fce74309e9d7d30dae5b822a1a683737a7b0337.zip
Fix: Add scanning and full printing support
Diffstat (limited to 'services')
-rw-r--r--services/printing/default.nix21
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];
+ };
}