mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
bd56368848
most of these are hidden because they're either part of a submodule that doesn't have its type rendered (eg because the submodule type is used in an either type) or because they are explicitly hidden. some of them are merely hidden from nix-doc-munge by how their option is put together.
27 lines
662 B
Nix
27 lines
662 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
options = {
|
|
|
|
hardware.sane.dsseries.enable =
|
|
mkEnableOption (lib.mdDoc "Brother DSSeries scan backend") // {
|
|
description = lib.mdDoc ''
|
|
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.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config = mkIf (config.hardware.sane.enable && config.hardware.sane.dsseries.enable) {
|
|
|
|
hardware.sane.extraBackends = [ pkgs.dsseries ];
|
|
services.udev.packages = [ pkgs.dsseries ];
|
|
boot.kernelModules = [ "sg" ];
|
|
|
|
};
|
|
}
|