2024-08-16 13:32:13 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-08-16 22:46:01 +02:00
|
|
|
...
|
2025-07-20 01:23:48 +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;
|
2025-07-20 01:23:48 +02:00
|
|
|
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;
|
2025-04-09 15:31:18 +02:00
|
|
|
inherit (cfg) powerOnBoot;
|
2024-08-16 13:32:13 +02:00
|
|
|
};
|
2025-03-02 19:11:27 +01:00
|
|
|
environment.systemPackages = builtins.attrValues {
|
2025-07-20 01:23:48 +02:00
|
|
|
inherit (pkgs)
|
2025-03-02 19:11:27 +01:00
|
|
|
bluetuith
|
|
|
|
bluez
|
|
|
|
blueman
|
|
|
|
;
|
|
|
|
};
|
2024-08-16 13:32:13 +02:00
|
|
|
};
|
|
|
|
}
|