24 lines
450 B
Nix
24 lines
450 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.my.bluetooth;
|
|
in
|
|
{
|
|
options.my.bluetooth = {
|
|
enable = lib.mkEnableOption "default bluetooth settings";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
powerOnBoot = true;
|
|
settings = {
|
|
General = {
|
|
Enable = "Source,Sink,Media,Socket";
|
|
Disable = "HeadSet";
|
|
MultiProfile = "multiple";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|