feat: add bluetooth module

This commit is contained in:
Dmitriy Kholkin 2025-07-07 15:39:59 +03:00
parent c58aeed984
commit d53f429801
Signed by: AtaraxiaDev
GPG Key ID: FD266B810DF48DF2

View File

@ -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" ];
};
}