stockholm/tv/2configs/xp-332.nix

43 lines
911 B
Nix
Raw Normal View History

2022-12-09 00:31:56 +00:00
with import ./lib;
2018-10-05 20:13:26 +00:00
{ config, pkgs, ... }: {
environment.etc."utsushi.conf".text = ''
[devices]
2021-06-05 09:36:05 +00:00
dev1.udi = esci:networkscan://ep.hkw:1865
2018-10-05 20:13:26 +00:00
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: {
utsushi-customized = self.utsushi.overrideAttrs (old: {
postInstall = ''
${old.postInstall or ""}
ln -s /etc/utsushi.conf $out/etc/utsushi/utsushi.conf
ln -s ${pkgs.imagescan-plugin-networkscan}/lib/utsushi/networkscan \
$out/libexec/utsushi/
'';
});
2018-10-05 20:13:26 +00:00
});
services = {
printing = {
drivers = [
pkgs.epson-escpr
];
enable = true;
};
saned.enable = true;
};
}