Scanners: Difference between revisions
Starfish2228 (talk | contribs) →GIMP support: Fix code example |
|||
| Line 132: | Line 132: | ||
<ol> | <ol> | ||
<li> | <li>Enable GIMP support in xsane by editing <tt>/etc/nixos/configuration.nix.</tt> Remove <tt>pkgs.xsane</tt> from your package list, and use the following instead: | ||
<syntaxhighlight lang="nix">{ | <syntaxhighlight lang="nix">{ | ||
... | #... | ||
environment.systemPackages = [ | |||
(pkgs.xsane.override { gimpSupport = true; }) | |||
]; | |||
... | #... | ||
}</syntaxhighlight></li> | }</syntaxhighlight></li> | ||
<li>Rebuild: <syntaxhighlight lang="console">$ sudo nixos-rebuild switch</syntaxhighlight></li> | <li>Rebuild: <syntaxhighlight lang="console">$ sudo nixos-rebuild switch</syntaxhighlight></li> | ||
| Line 148: | Line 148: | ||
==Network scanning== | ==Network scanning== | ||
If | If NixOS cannot find a scanner located on your network, you may be interested in adding in your <tt>configuration.nix</tt>: | ||
<syntaxhighlight lang="nix">{ | <syntaxhighlight lang="nix">{ | ||