2024-08-16 13:32:13 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-08-16 22:46:01 +02:00
|
|
|
...
|
2024-08-16 13:32:13 +02:00
|
|
|
}: let
|
2025-04-09 15:31:18 +02:00
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
|
2024-08-16 13:32:13 +02:00
|
|
|
cfg = config.modules.system.hardware.bluetooth;
|
|
|
|
in {
|
2024-08-16 22:46:01 +02:00
|
|
|
config = mkIf cfg.enable {
|
2024-08-16 13:32:13 +02:00
|
|
|
hardware.bluetooth = {
|
|
|
|
enable = true;
|
|
|
|
powerOnBoot = mkIf cfg.powerOnBoot true;
|
|
|
|
};
|
2025-03-02 19:11:27 +01:00
|
|
|
environment.systemPackages = builtins.attrValues {
|
|
|
|
inherit
|
|
|
|
(pkgs)
|
|
|
|
bluetuith
|
|
|
|
bluez
|
|
|
|
blueman
|
|
|
|
;
|
|
|
|
};
|
2024-08-16 13:32:13 +02:00
|
|
|
};
|
|
|
|
}
|