summaryrefslogtreecommitdiffstats
path: root/lass/2configs/print.nix
blob: 5769f9b156f98b04992d6c39e44dba623378fc34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ pkgs, ... }:
{
  services.printing = {
    enable = true;
    drivers = [
      pkgs.foomatic-filters
      pkgs.gutenprint
    ];
    browsing = true;
    browsedConf = ''
      BrowseDNSSDSubTypes _cups,_print
      BrowseLocalProtocols all
      BrowseRemoteProtocols all
      CreateIPPPrinterQueues All

      BrowseProtocols all
    '';
  };
  services.avahi = {
    enable = true;
    openFirewall = true;
    nssmdns = true;
  };
}