summaryrefslogtreecommitdiff
path: root/archetypes/collections/bluetooth.nix
blob: 749a9f1372ff2b51f4a0f4242735f68ad4d96113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{ pkgs, lib, config, ... }: let
	cfg = config._archetypes.collections.bluetooth;
in {
	options._archetypes.collections.bluetooth = {
		enable = lib.mkEnableOption "enables bluetooth and blueman";
	};

	config = lib.mkIf cfg.enable {
		hardware.bluetooth.enable = true;
		services.blueman.enable = config._archetypes.collections.desktop.utilities.enable;  # FIXME
	};
}