nix-dotfiles/nixosModules/services/bluetooth/service.nix

17 lines
364 B
Nix
Raw Normal View History

2024-04-07 17:08:48 -07:00
{ config, pkgs, lib, ... }:
{
options.bluetooth = {
enable = lib.mkEnableOption "Enables Bluetooth with blueman";
2024-04-07 17:08:48 -07:00
};
config = lib.mkIf config.bluetooth.enable {
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true;
environment.systemPackages = with pkgs; [
blueman
];
};
}