From e097d3e688ca76eb4a7dddc278d2f19369339938 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Mon, 7 Jul 2025 18:44:24 +0800 Subject: [PATCH] feat(nixos): add bluetooth module --- nix/modules/options/bluetooth.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 nix/modules/options/bluetooth.nix diff --git a/nix/modules/options/bluetooth.nix b/nix/modules/options/bluetooth.nix new file mode 100644 index 0000000..1c28f82 --- /dev/null +++ b/nix/modules/options/bluetooth.nix @@ -0,0 +1,16 @@ +{ lib, ... }: +let + inherit (lib.options) mkEnableOption; +in +{ + flake.modules.nixos.default = { + options.bluetooth.enable = mkEnableOption ""; + config = { + persistDirs = [ "/var/lib/bluetooth" ]; + hardware.bluetooth = { + enable = true; + settings.General.Experimental = true; + }; + }; + }; +}