Scanners: Difference between revisions
imported>Symphorien usb case for driverless printing |
imported>Jiltq m syntax + wording + parity with manual |
||
| Line 1: | Line 1: | ||
==Installing scanner support== | ==Installing scanner support== | ||
Scanner support is provided by the SANE library. To enable scanner support, amend | Scanner support is provided by the [http://www.sane-project.org SANE] library. To enable scanner support, amend your system configuration like so: | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
{ | { | ||
... | ... | ||
hardware.sane.enable = true; | hardware.sane.enable = true; # enables support for SANE scanners | ||
... | ... | ||
} | } | ||
</ | </nowiki>}} | ||
Users in the <code>scanner</code> group will gain access to the scanner, or the <code>lp</code> group if it’s also a printer. To add yourself to these groups, amend your system configuration as follows: | |||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | |||
< | |||
{ | { | ||
... | ... | ||
users.users.YOURUSERNAME.extraGroups = [ "scanner" "lp" ]; | |||
... | ... | ||
} | } | ||
</ | </nowiki>}} | ||
{{evaluate}} | {{evaluate}} | ||
{{Tip|The detection of installed backends by SANE depends on the < | {{Tip|The detection of installed backends by SANE depends on the <code>LD_LIBRARY_PATH</code> environment variable, which is set at login. You will need to '''logout''' and '''login''' again for backend changes to take effect after evaluation.}} | ||
==Testing scanner support== | ==Testing scanner support== | ||