summaryrefslogtreecommitdiff
path: root/archetypes/collections/desktop/printing.nix
blob: ed31048a8ab2e00efa2a482ae37b0049c4fb4e8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ lib, config, ... }: let
	cfg = config._archetypes.collections.desktop.printing;
in {
	options._archetypes.collections.desktop.printing = {
		enable = lib.mkEnableOption "enables printing and avahi service";
	};

	config = lib.mkIf cfg.enable {
		services.printing.enable = true;

		services.avahi = {
			enable = true;
			nssmdns4 = true;
			openFirewall = true;
		};
	};
}