voidconf/modules/bluetooth.nix

29 lines
394 B
Nix
Raw Normal View History

2025-02-24 22:27:29 +01:00
{
pkgs,
lib,
config,
...
}:
with lib;
let
2025-02-26 11:35:02 +01:00
cfg = config.voidconf.bluetooth;
2025-02-24 22:27:29 +01:00
in
{
options.voidconf.bluetooth = {
enable = mkEnableOption "Enables bluetooth tools";
};
config = mkIf cfg.enable {
2025-02-26 11:36:29 +01:00
hardware.bluetooth = {
2025-02-24 22:27:29 +01:00
enable = true;
};
2025-02-26 11:36:29 +01:00
2025-02-24 22:27:29 +01:00
services.blueman = {
enable = true;
};
environment.systemPackages = with pkgs; [
bluez
];
};
}