nichts/modules/system/hardware/bluetooth.nix

25 lines
404 B
Nix
Raw Normal View History

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