nichts/modules/system/hardware/bluetooth.nix

24 lines
419 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 (config.modules.other.system) username;
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;
};
2024-08-16 23:31:12 +02:00
home-manager.users.${username}.home.packages = with pkgs; [
bluetuith
2024-09-20 15:45:44 +02:00
bluez
blueman
];
};
}