nixos-config/modules/bluetooth/default.nix

19 lines
282 B
Nix
Raw Normal View History

{ pkgs
, config
, lib
, ...
2022-03-01 22:19:03 +01:00
}:
with lib; let
cfg = config.eboskma.bluetooth;
in
{
2021-11-22 08:04:54 +01:00
options.eboskma.bluetooth = {
enable = mkEnableOption "activate bluetooth";
};
2022-05-03 18:17:38 +02:00
config = mkIf cfg.enable {
2021-11-22 08:04:54 +01:00
hardware.bluetooth.enable = true;
services.blueman.enable = true;
};
}