2023-10-22 17:12:42 +02:00
|
|
|
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
2024-08-01 21:40:51 +02:00
|
|
|
options.my.hardware.bluetooth.enable = mkOption {
|
2023-10-22 17:12:42 +02:00
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
example = false;
|
|
|
|
description = ''
|
|
|
|
Enable the bluetooth stack
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-08-01 21:40:51 +02:00
|
|
|
config = mkIf config.my.hardware.bluetooth.enable {
|
2023-10-22 17:12:42 +02:00
|
|
|
hardware.bluetooth = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
services.blueman.enable = true;
|
|
|
|
};
|
|
|
|
}
|