nixos-config/modules/workstation/bluetooth.nix

20 lines
370 B
Nix
Raw Normal View History

{ lib, config, ... }:
with lib;
{
2024-08-01 21:40:51 +02:00
options.my.hardware.bluetooth.enable = mkOption {
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 {
hardware.bluetooth = {
enable = true;
};
services.blueman.enable = true;
};
}