{ lib, config, ... }: let inherit (lib) mkIf; in { config = mkIf config.bluetooth { hardware.bluetooth.enable = true; services.blueman.enable = true; users.groups.bluetooth.members = [config.user]; }; }