nix-conf/nixos-modules/bluetooth/default.nix

16 lines
279 B
Nix
Raw Normal View History

2023-12-30 23:39:33 +01:00
{ config, lib, ... }:
2023-05-19 20:53:02 +02:00
2024-07-10 23:02:54 +02:00
let
cfg = config.jopejoe1.bluetooth;
in
{
2023-12-29 16:43:40 +01:00
options.jopejoe1.bluetooth = {
enable = lib.mkEnableOption "Enable Bluetooth";
};
2023-05-19 20:53:02 +02:00
2023-12-29 16:43:40 +01:00
config = lib.mkIf cfg.enable {
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
};
}