diff options
author | lassulus <lass@blue.r> | 2018-10-07 11:41:44 +0200 |
---|---|---|
committer | lassulus <lass@blue.r> | 2018-10-07 11:41:44 +0200 |
commit | b4c5c19112f16d6d71455be0c4b9b946b4909c30 (patch) | |
tree | f0d5846763d84d83b2cf3ee372c10c9e4f2a6321 /tv/2configs/xp-332.nix | |
parent | 8bb0e8442e377cb1152959d5de4f61cb135cc31a (diff) | |
parent | 94c1cf62732f26944b5bb613c4880011f68420a3 (diff) |
Merge remote-tracking branch 'ni/master' into 18.09
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 0000000..627401d --- /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; + }; + +} |