This repository has no description
0

Configure Feed

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

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