feat: add bluetooth module
This commit is contained in:
parent
c58aeed984
commit
d53f429801
25
modules/nixos/hardware/bluetooth.nix
Normal file
25
modules/nixos/hardware/bluetooth.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user