diff --git a/hosts/pinwheel/modules/bluetooth/default.nix b/hosts/pinwheel/modules/bluetooth/default.nix new file mode 100644 index 0000000..4faf5c1 --- /dev/null +++ b/hosts/pinwheel/modules/bluetooth/default.nix @@ -0,0 +1,25 @@ +{ lib, config, ... }: +let + enabled = config.mod.bluetooth.enable; +in +{ + options = { + mod.bluetooth = { + enable = lib.mkEnableOption "enable bluetooth module"; + }; + }; + + config = lib.mkIf enabled { + hardware.bluetooth = { + enable = true; + + settings = { + General = { + Experimental = true; + }; + }; + }; + + services.blueman.enable = true; + }; +} diff --git a/hosts/pinwheel/modules/default.nix b/hosts/pinwheel/modules/default.nix index cb0aecf..910d382 100644 --- a/hosts/pinwheel/modules/default.nix +++ b/hosts/pinwheel/modules/default.nix @@ -8,6 +8,7 @@ in config = { mod = { + bluetooth.enable = true; nix-index.enable = false; greetd.enable = true; hyprland.enable = true; diff --git a/hosts/pinwheel/modules/sound/default.nix b/hosts/pinwheel/modules/sound/default.nix index a827820..5519e06 100644 --- a/hosts/pinwheel/modules/sound/default.nix +++ b/hosts/pinwheel/modules/sound/default.nix @@ -5,18 +5,7 @@ in { users.users.alex.extraGroups = [ "audio" ]; - hardware.bluetooth = { - enable = true; - - settings = { - General = { - Experimental = true; - }; - }; - }; - hardware.pulseaudio.enable = false; - services.blueman.enable = true; security.rtkit.enable = true; services.pipewire = {