diff options
author | jeschli <jeschli@gmail.com> | 2018-10-26 12:25:40 +0200 |
---|---|---|
committer | jeschli <jeschli@gmail.com> | 2018-10-26 12:25:40 +0200 |
commit | a6670e5090dd71aacd7c7605b12d8d3410d25daa (patch) | |
tree | 8475a3cc3583d94959a1cc8b6effcd3b8c10a32a /tv/2configs/xp-332.nix | |
parent | f6ad60a0c6cbac45e8ba715b24a7a37f8e2560dc (diff) | |
parent | 24f4e8dcf0eca55378fa018a9ed980625222653d (diff) |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'tv/2configs/xp-332.nix')
-rw-r--r-- | tv/2configs/xp-332.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tv/2configs/xp-332.nix b/tv/2configs/xp-332.nix new file mode 100644 index 000000000..627401dc6 --- /dev/null +++ b/tv/2configs/xp-332.nix @@ -0,0 +1,45 @@ +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 = [ + pkgs.utsushi + ]; + }; + + krebs.nixpkgs.allowUnfreePredicate = pkg: + elem (parseDrvName pkg.name).name [ "imagescan-plugin-networkscan" ]; + + nixpkgs.overlays = singleton (self: super: { + utsushi = super.utsushi.override { + 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; + }; + +} |