summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/printer.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2021-05-20 11:08:58 +0200
committertv <tv@krebsco.de>2021-05-20 11:08:58 +0200
commit5460255668f43ad1486c6ce0261aebe06d64857a (patch)
tree75e4f4b71c5636bb405b9ddbb30fdbeeffb4eced /makefu/2configs/printer.nix
parenta5d9c02a937f577c0dc25b8e46142f9c9b1db534 (diff)
parentda975042c505a2fa693677cbd10d8245c17b3570 (diff)
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'makefu/2configs/printer.nix')
-rw-r--r--makefu/2configs/printer.nix30
1 files changed, 18 insertions, 12 deletions
diff --git a/makefu/2configs/printer.nix b/makefu/2configs/printer.nix
index 89b5e0579..72b9dadd6 100644
--- a/makefu/2configs/printer.nix
+++ b/makefu/2configs/printer.nix
@@ -21,20 +21,26 @@ in {
hardware.sane = {
enable = true;
extraBackends = [ ];
- netConf =
- # drucker.lan SCX-3205W
- ''
- 192.168.111.16''
- # uhrenkind.shack magicolor 1690mf
- + ''
- 10.42.20.30'';
+ extraConfig.xerox_mfp = ''
+ usb 0x04e8 0x3441
+ '';
+ #netConf =
+ # # drucker.lan SCX-3205W
+ # ''
+ # 192.168.111.16''
+ # # uhrenkind.shack magicolor 1690mf
+ #+ ''
+ # 10.42.20.30'';
- # $ scanimage -p --format=jpg --mode=Gray --source="Automatic Document Feeder" -v --batch="lol%d.jpg" --resolution=150
+ ## $ scanimage -p --format=jpg --mode=Gray --source="Automatic Document Feeder" -v --batch="lol%d.jpg" --resolution=150
- # requires 'sane-extra', scan via:
- extraConfig."magicolor" = ''
- net 10.42.20.30 0x2098
- ''; # 10.42.20.30: uhrenkind.shack magicolor 1690mf
+ ## requires 'sane-extra', scan via:
+ #extraConfig."magicolor" = ''
+ # net 10.42.20.30 0x2098
+ #''; # 10.42.20.30: uhrenkind.shack magicolor 1690mf
};
state = [ "/var/lib/cups" ];
+ services.udev.extraRules = ''
+ ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="3441", ENV{libsane_matched}="yes"
+ '';
}