bluetooth mode... activated

This commit is contained in:
Reid 2024-05-01 18:24:13 -07:00
parent 1182d7e1ac
commit 642bea2f41
2 changed files with 20 additions and 1 deletions

View file

@ -31,6 +31,7 @@
security.useDoas = true;
hardware = {
bluetooth.enable = true;
pipewire.enable = true;
};
dev = {
@ -45,7 +46,6 @@
hyprpaper.enable = true;
polkit-gnome.enable = true;
dunst.enable = true;
rofi.enable = true;
nwg-drawer.enable = true;

View file

@ -0,0 +1,19 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.modules.hardware.bluetooth;
in {
options.modules.hardware.bluetooth = {
enable = mkEnableOption "Enable bluetooth, a short-range communication technology";
};
config = mkIf cfg.enable {
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
# frontend
services.blueman.enable = true;
hm.services.blueman-applet.enable = true;
};
}