nichts/modules/system/hardware/bluetooth.mod.nix

26 lines
399 B
Nix
Raw Normal View History

{
config,
lib,
pkgs,
2024-08-16 22:46:01 +02:00
...
}: let
inherit (lib.modules) mkIf;
cfg = config.modules.system.hardware.bluetooth;
in {
2024-08-16 22:46:01 +02:00
config = mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
inherit (cfg) powerOnBoot;
};
environment.systemPackages = builtins.attrValues {
inherit
(pkgs)
bluetuith
bluez
blueman
;
};
};
}