aboutsummaryrefslogtreecommitdiff
path: root/modules/services/printer.nix
blob: 0f6d82bbd80addd793636f5eefe75ba91c50624c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
  config,
  pkgs,
  lib,
  ...
}:
{
  options.nx.services.printer.enable = lib.mkEnableOption "Enable printer service";
  config = lib.mkIf config.nx.services.printer.enable {
		services.printing = {
			enable = true;
			drivers = [ pkgs.brlaser ];
		};
		# printer autodiscovery
		services.avahi = {
			enable = true;
			nssmdns4 = true;
			openFirewall = true;
		};
  };
}