]> Git — Sourcephile - julm/julm-nix.git/blob - nixos/profiles/printing.nix
pumpkin: wireshark: enable
[julm/julm-nix.git] / nixos / profiles / printing.nix
1 { pkgs, lib, ... }:
2 {
3 imports = [
4 ./avahi.nix
5 ];
6 services.printing = {
7 enable = true;
8 drivers = [
9 pkgs.canon-cups-ufr2
10 pkgs.cups-filters
11 pkgs.gutenprint
12 pkgs.hplip
13 ];
14 };
15 hardware.sane.enable = true;
16 hardware.sane.extraBackends = [
17 pkgs.hplipWithPlugin
18 pkgs.sane-airscan
19 ];
20 # ExplanationNote: cups-browsed only supports avahi, not systemd-resolved
21 services.avahi.enable = lib.mkDefault true;
22 services.resolved.extraConfig = ''
23 MulticastDNS=false
24 '';
25 networking.nftables.ruleset = ''
26 table inet filter {
27 chain output-lan {
28 meta l4proto { udp, tcp } th dport { ipp, ipps } counter accept comment "IPP"
29 }
30 chain output-net {
31 meta l4proto { udp, tcp } th dport { ipp, ipps } counter accept comment "IPP"
32 }
33 }
34 '';
35 }