nix/modules/system/hardware/bluetooth.nix

31 lines
517 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
let
cfg = config.settings.hardware.bluetooth;
in {
options = {
settings.hardware.bluetooth.enable = lib.mkOption {
type = lib.types.bool;
description = ''
Enable bluetooth
'';
2024-03-14 22:46:49 +01:00
};
};
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
};
};
services.blueman.enable = true;
};
2024-03-14 22:46:49 +01:00
}