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;
|
2018-10-08 20:31:31 +02:00
|
|
|
drivers = with pkgs; [
|
2019-01-22 08:15:33 +01:00
|
|
|
# samsungUnifiedLinuxDriver
|
|
|
|
splix # scx 3200
|
2018-10-08 20:31:31 +02:00
|
|
|
cups-dymo # dymo labelwriter
|
|
|
|
foo2zjs # magicolor 1690mf
|
|
|
|
cups-zj-58
|
2015-12-04 22:42:44 +01:00
|
|
|
];
|
|
|
|
};
|
2016-02-11 17:06:50 +01:00
|
|
|
|
2017-09-11 23:02:58 +02:00
|
|
|
users.users."${mainUser}".extraGroups = [ "scanner" "lp" ];
|
2017-08-02 11:49:27 +02:00
|
|
|
|
2021-03-12 20:29:23 +01:00
|
|
|
# scanners are printers just in reverse anyway
|
|
|
|
services.saned.enable = true;
|
2017-08-02 11:49:27 +02:00
|
|
|
hardware.sane = {
|
|
|
|
enable = true;
|
2017-09-11 23:02:58 +02:00
|
|
|
extraBackends = [ ];
|
2020-11-16 21:31:58 +01:00
|
|
|
netConf =
|
|
|
|
# drucker.lan SCX-3205W
|
|
|
|
''
|
2021-04-08 21:39:39 +02:00
|
|
|
192.168.111.16''
|
2020-11-16 21:31:58 +01:00
|
|
|
# uhrenkind.shack magicolor 1690mf
|
|
|
|
+ ''
|
|
|
|
10.42.20.30'';
|
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:
|
2020-11-16 21:31:58 +01:00
|
|
|
extraConfig."magicolor" = ''
|
|
|
|
net 10.42.20.30 0x2098
|
|
|
|
''; # 10.42.20.30: uhrenkind.shack magicolor 1690mf
|
2017-08-02 11:49:27 +02:00
|
|
|
};
|
2019-05-08 13:59:13 +02:00
|
|
|
state = [ "/var/lib/cups" ];
|
2015-12-04 22:42:44 +01:00
|
|
|
}
|