2017-08-02 11:49:27 +02:00
|
|
|
{ config, pkgs, ... }:
|
2015-12-04 22:42:44 +01:00
|
|
|
|
2017-08-02 11:49:27 +02:00
|
|
|
let
|
|
|
|
mainUser = config.krebs.build.user.name;
|
|
|
|
in {
|
2015-12-04 22:42:44 +01:00
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = [
|
|
|
|
pkgs.samsungUnifiedLinuxDriver
|
2017-08-02 11:49:27 +02:00
|
|
|
pkgs.cups-dymo # dymo labelwriter
|
|
|
|
pkgs.foo2zjs # magicolor 1690mf
|
2015-12-04 22:42:44 +01:00
|
|
|
];
|
|
|
|
};
|
2016-02-11 17:06:50 +01:00
|
|
|
|
|
|
|
# scanners are printers just in reverse anyway
|
2017-08-02 11:49:27 +02:00
|
|
|
services.saned.enable = true;
|
2017-09-11 23:02:58 +02:00
|
|
|
users.users."${mainUser}".extraGroups = [ "scanner" "lp" ];
|
2017-08-02 11:49:27 +02:00
|
|
|
|
|
|
|
hardware.sane = {
|
|
|
|
enable = true;
|
2017-09-11 23:02:58 +02:00
|
|
|
extraBackends = [ ];
|
2017-08-02 11:49:27 +02:00
|
|
|
|
|
|
|
# $ scanimage -p --format=jpg --mode=Gray --source="Automatic Document Feeder" -v --batch="lol%d.jpg" --resolution=150
|
|
|
|
|
|
|
|
# requires 'sane-extra', scan via:
|
2017-09-11 23:02:58 +02:00
|
|
|
#extraConfig."magicolor" = ''
|
|
|
|
# net 10.42.20.30 0x2098
|
|
|
|
#''; # 10.42.20.30: uhrenkind.shack magicolor 1690mf
|
|
|
|
extraConfig."xerox_mfp" = ''
|
|
|
|
tcp 192.168.1.5
|
|
|
|
''; #home printer SCX-3205W
|
2017-08-02 11:49:27 +02:00
|
|
|
};
|
2015-12-04 22:42:44 +01:00
|
|
|
}
|