21 lines
310 B
Nix
21 lines
310 B
Nix
|
{
|
||
|
options,
|
||
|
config,
|
||
|
lib,
|
||
|
pkgs,
|
||
|
...
|
||
|
}:
|
||
|
with lib; let
|
||
|
cfg = config.aa.hardware.bluetooth;
|
||
|
in {
|
||
|
options.aa.hardware.bluetooth = with types; {
|
||
|
enable = mkEnableOption "bluetooth";
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
hardware.bluetooth.enable = true;
|
||
|
services.blueman.enable = true;
|
||
|
};
|
||
|
}
|
||
|
|