nix-conf/modules/bluetooth/default.nix
2023-12-30 23:39:33 +01:00

13 lines
277 B
Nix

{ config, lib, ... }:
let cfg = config.jopejoe1.bluetooth;
in {
options.jopejoe1.bluetooth = {
enable = lib.mkEnableOption "Enable Bluetooth";
};
config = lib.mkIf cfg.enable {
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
};
}