2025-07-05 00:02:39 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
2025-08-15 21:33:22 +02:00
|
|
|
cfg = config.mySystem.hardware.bluetooth;
|
2025-07-05 00:02:39 +02:00
|
|
|
in {
|
2025-08-15 21:33:22 +02:00
|
|
|
options.mySystem.hardware.bluetooth.enable = mkEnableOption "Enable bluetooth";
|
2025-07-05 00:02:39 +02:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
hardware.bluetooth.enable = cfg.enable;
|
|
|
|
services.blueman.enable = cfg.enable;
|
|
|
|
};
|
|
|
|
}
|