dotfiles/modules/os/desktop/bluetooth.nix

20 lines
360 B
Nix
Raw Normal View History

{ config, lib, ... }:
let
cfg = config.my.desktop.bluetooth;
in {
options.my.desktop.bluetooth = {
enable = lib.mkEnableOption null;
};
config = lib.mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
settings = {
General.Enable = "Source,Sink,Media,Socket";
};
};
services.blueman.enable = true;
};
}