2019-03-08 14:58:32 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
|
2024-12-08 13:18:26 +01:00
|
|
|
hardware.sane.dsseries.enable = lib.mkEnableOption "Brother DSSeries scan backend" // {
|
2022-08-29 19:33:50 +02:00
|
|
|
description = ''
|
2019-03-08 14:58:32 +00:00
|
|
|
When enabled, will automatically register the "dsseries" SANE backend.
|
|
|
|
|
|
|
|
This supports the Brother DSmobile scanner series, including the
|
|
|
|
DS-620, DS-720D, DS-820W, and DS-920DW scanners.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-12-08 13:18:26 +01:00
|
|
|
config = lib.mkIf (config.hardware.sane.enable && config.hardware.sane.dsseries.enable) {
|
2019-03-08 14:58:32 +00:00
|
|
|
|
|
|
|
hardware.sane.extraBackends = [ pkgs.dsseries ];
|
|
|
|
services.udev.packages = [ pkgs.dsseries ];
|
|
|
|
boot.kernelModules = [ "sg" ];
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|