nichts/modules/system/hardware/bluetooth.nix

24 lines
404 B
Nix

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