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
|
|
|
|
cfg = config.modules.system.hardware.bluetooth;
|
|
|
|
inherit (lib) mkIf;
|
|
|
|
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;
|
|
|
|
};
|
2024-11-01 20:55:12 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
2024-08-16 13:32:13 +02:00
|
|
|
bluetuith
|
2024-09-20 15:45:44 +02:00
|
|
|
bluez
|
2024-10-14 15:40:26 +02:00
|
|
|
blueman
|
2024-08-16 13:32:13 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|