From 642bea2f41418c401897b7bbb7512a6f16907068 Mon Sep 17 00:00:00 2001 From: "Reid \"reidlab" Date: Wed, 1 May 2024 18:24:13 -0700 Subject: [PATCH] bluetooth mode... activated --- hosts/goopnet-interface/default.nix | 2 +- modules/hardware/bluetooth.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 modules/hardware/bluetooth.nix 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; + }; +}