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; + }; + }; + }; +}