17 lines
301 B
Nix
17 lines
301 B
Nix
{ lib, config, ... }:
|
|
|
|
let
|
|
cfg = config.systemSettings.bluetooth;
|
|
in {
|
|
options = {
|
|
systemSettings.bluetooth = {
|
|
enable = lib.mkEnableOption "Enable bluetooth";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
hardware.bluetooth.enable = true;
|
|
services.blueman.enable = true;
|
|
};
|
|
}
|