ma printer: add support for magicolor
This commit is contained in:
parent
3737346883
commit
a5c7310cc2
@ -1,15 +1,30 @@
|
|||||||
{ pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
|
mainUser = config.krebs.build.user.name;
|
||||||
|
in {
|
||||||
services.printing = {
|
services.printing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
drivers = [
|
drivers = [
|
||||||
pkgs.samsungUnifiedLinuxDriver
|
pkgs.samsungUnifiedLinuxDriver
|
||||||
pkgs.cups-dymo
|
pkgs.cups-dymo # dymo labelwriter
|
||||||
|
pkgs.foo2zjs # magicolor 1690mf
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# scanners are printers just in reverse anyway
|
# scanners are printers just in reverse anyway
|
||||||
hardware.sane.enable = true;
|
services.saned.enable = true;
|
||||||
hardware.sane.extraBackends = [ pkgs.samsungUnifiedLinuxDriver ];
|
users.users."${mainUser}".extraGroups = [ "scanner" ];
|
||||||
|
|
||||||
|
hardware.sane = {
|
||||||
|
enable = true;
|
||||||
|
extraBackends = [ pkgs.samsungUnifiedLinuxDriver ];
|
||||||
|
|
||||||
|
# $ 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
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user