diff --git a/hosts/goopnet-interface/default.nix b/hosts/goopnet-interface/default.nix index 43fceb6..9cb92c5 100755 --- a/hosts/goopnet-interface/default.nix +++ b/hosts/goopnet-interface/default.nix @@ -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; diff --git a/modules/hardware/bluetooth.nix b/modules/hardware/bluetooth.nix new file mode 100644 index 0000000..e121d64 --- /dev/null +++ b/modules/hardware/bluetooth.nix @@ -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; + }; +}