This repository has no description
0

Configure Feed

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

superconfig / configs / br.nix
659 B 31 lines
1{ pkgs, ... }: 2{ 3 4 hardware.sane = { 5 enable = true; 6 brscan4 = { 7 enable = true; 8 netDevices = { 9 bra = { 10 model = "MFCL2700DN"; 11 ip = "10.42.0.4"; 12 }; 13 }; 14 }; 15 }; 16 17 services.saned.enable = true; 18 19 # usage: scanimage -d "$(find-scanner bra)" --batch --format=tiff --resolution 150 -x 211 -y 298 20 environment.systemPackages = [ 21 (pkgs.writers.writeDashBin "find-scanner" '' 22 set -efu 23 name=$1 24 ${pkgs.sane-backends}/bin/scanimage -f '%m %d 25 ' \ 26 | ${pkgs.gawk}/bin/awk -v dev="*$name" '$1 == dev { print $2; exit }' \ 27 | ${pkgs.gnugrep}/bin/grep . 28 '') 29 ]; 30 31}