nichts/modules/system/hardware/bluetooth.mod.nix
Bloxx12 e641dfa114
treewide: format using nixfmt
Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a69641c36f9763e104087a559c148d0449f00
2025-07-20 02:14:32 +02:00

26 lines
391 B
Nix

{
config,
lib,
pkgs,
...
}:
let
inherit (lib.modules) mkIf;
cfg = config.modules.system.hardware.bluetooth;
in
{
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
inherit (cfg) powerOnBoot;
};
environment.systemPackages = builtins.attrValues {
inherit (pkgs)
bluetuith
bluez
blueman
;
};
};
}