This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

1{ pkgs, modulesPath, ... }: 2{ 3 4 imports = [ 5 (modulesPath + "/services/hardware/sane_extra_backends/brscan4.nix") 6 ]; 7 8 hardware.sane = { 9 enable = true; 10 brscan4 = { 11 enable = true; 12 netDevices = { 13 bra = { 14 model = "MFCL2700DN"; 15 ip = "10.42.0.4"; 16 }; 17 }; 18 }; 19 }; 20 21 services.saned.enable = true; 22 23 # usage: scanimage -d "$(find-scanner bra)" --batch --format=tiff --resolution 150 -x 211 -y 298 24 environment.systemPackages = [ 25 (pkgs.writeDashBin "find-scanner" '' 26 set -efu 27 name=$1 28 ${pkgs.sane-backends}/bin/scanimage -f '%m %d 29 ' \ 30 | ${pkgs.gawk}/bin/awk -v dev="*$name" '$1 == dev { print $2; exit }' \ 31 | ${pkgs.gnugrep}/bin/grep . 32 '') 33 ]; 34 35 services.printing = { 36 enable = true; 37 drivers = [ 38 pkgs.mfcl2700dncupswrapper 39 ]; 40 }; 41 42 users.users.mainUser.extraGroups = [ 43 "scanner" 44 "lp" 45 ]; 46 47}