1 { pkgs, lib, config, ... }:
15 hardware.sane.enable = true;
16 hardware.sane.extraBackends = [
20 services.colord.enable = true;
21 # ExplanationNote: cups-browsed only supports avahi, not systemd-resolved
22 services.avahi.enable = lib.mkDefault true;
23 services.resolved.extraConfig = ''
26 networking.nftables.ruleset = ''
29 tcp dport { ipp, ipps } counter accept comment "printing: IPP"
30 tcp dport sane-port counter accept comment "sane-net: control port"
31 tcp dport {40000 - 40100} counter accept comment "saned: data ports"
34 '' + lib.optionalString config.hardware.sane.openFirewall ''
37 udp canon-bjnp2 counter accept comment "sane: discovery of scanners on the local network"