1{ lib, config, ... }: let
2 cfg = config.cyclamen.system.printing;
3in {
4 options.cyclamen.system.printing.enable = lib.mkEnableOption "printing";
5
6 config = lib.mkIf cfg.enable {
7 services.printing.enable = true;
8
9 # network printer discovery
10 services.avahi = {
11 enable = true;
12 nssmdns4 = true;
13 nssmdns6 = true;
14 openFirewall = true;
15 };
16 };
17}