summaryrefslogtreecommitdiff
path: root/nixos/features/services/bundles/printing.nix
blob: ea255beddd6d16de25c322cd7789321317f0340b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{ config, lib, ... }: let
  cfg = config.features.services.bundles.printing;
in {
  options.features.services.bundles.printing.enable = lib.mkEnableOption "printing";
  config = lib.mkIf cfg.enable {
    services.printing.enable = true;
    services.avahi = {
      enable = true;
      nssmdns4 = true;
      openFirewall = true;
    };
  };
}