1 { config, lib, pkgs, ... }:
8 hardware.sane.dsseries.enable =
9 mkEnableOption "Brother DSSeries scan backend" // {
11 When enabled, will automatically register the "dsseries" SANE backend.
13 This supports the Brother DSmobile scanner series, including the
14 DS-620, DS-720D, DS-820W, and DS-920DW scanners.
19 config = mkIf (config.hardware.sane.enable && config.hardware.sane.dsseries.enable) {
21 hardware.sane.extraBackends = [ pkgs.dsseries ];
22 services.udev.packages = [ pkgs.dsseries ];
23 boot.kernelModules = [ "sg" ];