From d53f4298016f5f6f934f9c071b2fd29f61fc99be Mon Sep 17 00:00:00 2001 From: Dmitriy Kholkin Date: Mon, 7 Jul 2025 15:39:59 +0300 Subject: [PATCH] feat: add bluetooth module --- modules/nixos/hardware/bluetooth.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 modules/nixos/hardware/bluetooth.nix diff --git a/modules/nixos/hardware/bluetooth.nix b/modules/nixos/hardware/bluetooth.nix new file mode 100644 index 0000000..0a13bbc --- /dev/null +++ b/modules/nixos/hardware/bluetooth.nix @@ -0,0 +1,25 @@ +{ config, lib, ... }: +let + inherit (lib) mkEnableOption mkIf; + + cfg = config.ataraxia.defaults.bluetooth; +in +{ + options.ataraxia.defaults.bluetooth = { + enable = mkEnableOption "Default bluetooth settings"; + }; + + config = mkIf cfg.enable { + services.blueman.enable = true; + hardware.bluetooth = { + enable = true; + settings = { + General = { + Experimental = true; + }; + }; + }; + + persist.state.directories = [ "/var/lib/bluetooth" ]; + }; +}