NixOS and Home Manager config
1{ lib, pkgs, config, ... }: let 2 cfg = config.cyclamen.system.bluetooth; 3in { 4 options.cyclamen.system.bluetooth.enable = lib.mkEnableOption "bluetooth"; 5 6 config = lib.mkIf cfg.enable { 7 hardware.bluetooth.enable = true; 8 9 # add bluetui as a minimal fallback for DEs/WMs that don't have a GUI bluetooth manager 10 environment.systemPackages = [ pkgs.bluetui ]; 11 }; 12}