{ lib, config, ... }: with lib; { options.my.hardware.bluetooth.enable = mkOption { type = types.bool; default = true; example = false; description = '' Enable the bluetooth stack ''; }; config = mkIf config.my.hardware.bluetooth.enable { hardware.bluetooth = { enable = true; }; services.blueman.enable = true; }; }