nixos-configuration/modules/bluetooth.nix
2023-11-22 14:54:34 +00:00

17 lines
368 B
Nix

{ config, lib, pkgs, ... }:
let
cfg = config.jalr;
in
{
options.jalr = {
bluetooth.enable = pkgs.lib.mkEnableOption "Enable bluetooth" // { default = false; };
};
config = lib.mkIf cfg.bluetooth.enable {
hardware.bluetooth.enable = true;
services.blueman.enable = true;
services.ofono.enable = true;
services.upower.enable = true;
};
}