2018-10-05 20:13:26 +00:00
|
|
|
with import <stockholm/lib>;
|
|
|
|
{ config, pkgs, ... }: {
|
|
|
|
|
|
|
|
environment.etc."utsushi.conf".text = ''
|
|
|
|
[devices]
|
|
|
|
dev1.udi = esci:networkscan://EPSON79678C.fritz.box:1865
|
|
|
|
dev1.model = XP-332
|
|
|
|
dev1.vendor = EPSON
|
|
|
|
'';
|
|
|
|
|
|
|
|
hardware.sane = {
|
|
|
|
enable = true;
|
|
|
|
extraBackends = [
|
2018-11-27 11:09:19 +00:00
|
|
|
pkgs.utsushi-customized
|
2018-10-05 20:13:26 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
krebs.nixpkgs.allowUnfreePredicate = pkg:
|
2019-09-04 18:17:56 +00:00
|
|
|
packageName pkg == "imagescan-plugin-networkscan";
|
2018-10-05 20:13:26 +00:00
|
|
|
|
|
|
|
nixpkgs.overlays = singleton (self: super: {
|
2018-11-27 11:09:19 +00:00
|
|
|
utsushi-customized = self.utsushi.override {
|
2018-10-05 20:13:26 +00:00
|
|
|
guiSupport = false;
|
|
|
|
jpegSupport = false;
|
|
|
|
networkSupport = true;
|
|
|
|
ocrSupport = false;
|
|
|
|
saneSupport = true;
|
|
|
|
tiffSupport = true;
|
|
|
|
|
|
|
|
logCategory = "ALL";
|
|
|
|
logLevel = "BRIEF";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
services = {
|
|
|
|
printing = {
|
|
|
|
drivers = [
|
|
|
|
pkgs.epson-escpr
|
|
|
|
];
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
saned.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|