{ config, lib, ... }: let cfg = config.os.srv.bluetooth; in { options.os.srv.bluetooth.enable = lib.mkEnableOption "enables bluetooth support"; config = lib.mkIf cfg.enable { services.blueman.enable = true; hardware.bluetooth = { enable = true; powerOnBoot = true; }; }; }