Scanners: Difference between revisions
Starfish2228 (talk | contribs) →GIMP support: Fix code example |
Clean.lock (talk | contribs) Add example for network-attached epkowa scanner |
||
| (One intermediate revision by one other user not shown) | |||
| Line 72: | Line 72: | ||
===Epson=== | ===Epson=== | ||
If your scanner is listed as supported by the <tt>epkowa</tt> backend: | If your scanner is listed as supported by the <tt>epkowa</tt> backend and is connected by USB or SCSI: | ||
<syntaxhighlight lang="nix">hardware.sane.extraBackends = [ pkgs.epkowa ];</syntaxhighlight> | <syntaxhighlight lang="nix">hardware.sane.extraBackends = [ pkgs.epkowa ];</syntaxhighlight> | ||
If your scanner is listed as supported by the <tt>epkowa</tt> backend and is on the network, | |||
substitute the host name or IP address in: | |||
<syntaxhighlight lang="nix"> | |||
hardware.sane.extraBackends = [ | |||
(pkgs.epkowa.overrideAttrs (oldAttrs: { | |||
postInstall = oldAttrs.postInstall + '' | |||
echo "net epson10a2e0.local" >> $out/etc/sane.d/epkowa.conf | |||
''; | |||
})) | |||
]; | |||
</syntaxhighlight> | |||
Some other scanners (see [https://gitlab.com/utsushi/utsushi/blob/master/README list]) need the <tt>utsushi</tt> backend: | Some other scanners (see [https://gitlab.com/utsushi/utsushi/blob/master/README list]) need the <tt>utsushi</tt> backend: | ||
| Line 174: | Line 187: | ||
==Using the scanner button== | ==Using the scanner button== | ||
{{WOC}} | |||
Many scanners feature a hardware button which makes for very convenient operation, especially in combination with an automated document processing system like <tt>paperless</tt>. NixOS includes the scanner button daemon <tt>scanbd</tt> which can be used for this purpose; however, its setup isn't terribly user friendly. | Many scanners feature a hardware button which makes for very convenient operation, especially in combination with an automated document processing system like <tt>paperless</tt>. NixOS includes the scanner button daemon <tt>scanbd</tt> which can be used for this purpose; however, its setup isn't terribly user friendly. | ||
| Line 366: | Line 380: | ||
}; | }; | ||
}</syntaxhighlight> | }</syntaxhighlight> | ||
==See also== | ==See also== | ||