From cd0bbe3e198add0512d8dd753b5a70801453ec08 Mon Sep 17 00:00:00 2001 From: vorboyvo Date: Thu, 23 Apr 2026 17:33:58 -0400 Subject: [PATCH] Did printing and scanning stuff. --- hosts/randolph/configuration.nix | 13 ++++++++++++- snippets/scanning.nix | 10 ++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 snippets/scanning.nix diff --git a/hosts/randolph/configuration.nix b/hosts/randolph/configuration.nix index f615340..cc5326c 100644 --- a/hosts/randolph/configuration.nix +++ b/hosts/randolph/configuration.nix @@ -9,6 +9,7 @@ ./hardware-configuration.nix ../../snippets/samba.nix ../../snippets/lix.nix + ../../snippets/scanning.nix ]; ################################################ @@ -126,7 +127,17 @@ # }); # Enable CUPS to print documents. - services.printing.enable = true; + services.printing = { + enable = true; + drivers = with pkgs; [ + cups-filters + # driverless + ghostscript + colord + ]; + logLevel = "debug"; + }; + # services.printing.enable = false; # Enable SANE for scanning. # hardware.sane = { diff --git a/snippets/scanning.nix b/snippets/scanning.nix new file mode 100644 index 0000000..7be7362 --- /dev/null +++ b/snippets/scanning.nix @@ -0,0 +1,10 @@ +# for configuration.nix +{ config, lib, pkgs, ... }: +{ + hardware.sane = { + enable = true; + extraBackends = [ pkgs.sane-airscan pkgs.epkowa ]; + }; + + environment.systemPackages = with pkgs; [ naps2 ]; +}