19 lines
306 B
Nix
19 lines
306 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf mkEnableOption;
|
|
|
|
cfg = config.aa.hardware.bluetooth;
|
|
in {
|
|
options.aa.hardware.bluetooth = {
|
|
enable = mkEnableOption "bluetooth";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
hardware.bluetooth.enable = true;
|
|
services.blueman.enable = true;
|
|
};
|
|
}
|