aboutsummaryrefslogtreecommitdiff
path: root/nixos/nixosModules/printing.nix
blob: 3d4eee1016484fd1ed22467324ac7a08ae822dda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ pkgs, config, lib, ... }:

{
  options = {
    printing.enable = lib.mkEnableOption "enable printing";
  };
  config = lib.mkIf config.printing.enable {
    services = {
      printing.enable = true;
      printing.drivers = [ pkgs.hplipWithPlugin ];
      avahi = {
        enable = true;
        nssmdns = true;
        openFirewall = true;
      };
    };
  };
}