summaryrefslogtreecommitdiff
path: root/nixos/features/services/bundles/printing.nix
blob: 460106ecc731f7d379ab104c716969c9ba314e4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, pkgs, ... }: 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;
      drivers = with pkgs; [
        brlaser
      ];
    };
    services.avahi = {
      enable = true;
      nssmdns4 = true;
      openFirewall = true;
    };
  };
}