21 lines
332 B
Nix
21 lines
332 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
options.custom = with lib; {
|
|
bluetooth = {
|
|
enable = mkEnableOption "Enable bluetooth";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.custom.bluetooth.enable {
|
|
hardware.bluetooth = {
|
|
enable = true;
|
|
powerOnBoot = true;
|
|
};
|
|
services.blueman.enable = true;
|
|
};
|
|
}
|