stockholm/makefu/2configs/printer.nix

31 lines
786 B
Nix
Raw Normal View History

2017-08-02 09:49:27 +00:00
{ config, pkgs, ... }:
2017-08-02 09:49:27 +00:00
let
mainUser = config.krebs.build.user.name;
in {
services.printing = {
enable = true;
drivers = [
pkgs.samsungUnifiedLinuxDriver
2017-08-02 09:49:27 +00:00
pkgs.cups-dymo # dymo labelwriter
pkgs.foo2zjs # magicolor 1690mf
];
};
2016-02-11 16:06:50 +00:00
# scanners are printers just in reverse anyway
2017-08-02 09:49:27 +00:00
services.saned.enable = true;
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
};
}