nixos-config/modules/workstation/bluetooth.nix
2024-08-01 21:40:51 +02:00

20 lines
370 B
Nix

{ lib, config, ... }:
with lib;
{
options.my.hardware.bluetooth.enable = mkOption {
type = types.bool;
default = true;
example = false;
description = ''
Enable the bluetooth stack
'';
};
config = mkIf config.my.hardware.bluetooth.enable {
hardware.bluetooth = {
enable = true;
};
services.blueman.enable = true;
};
}