nixos/modules/hardware/bluetooth/default.nix

29 lines
519 B
Nix
Raw Normal View History

2024-07-28 21:08:02 +02:00
{
config,
lib,
pkgs,
...
}:
2023-03-19 14:27:51 +01:00
let
cfg = config.my.hardware.bluetooth;
in
{
2025-09-21 18:40:36 +02:00
options.my.hardware.bluetooth = {
enable = lib.mkEnableOption "bluetooth configuration";
2023-03-19 14:27:51 +01:00
};
config = lib.mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
2025-12-29 12:32:11 +01:00
powerOnBoot = true;
2023-03-19 14:27:51 +01:00
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
};
};
services.blueman.enable = true;
2024-07-28 21:08:02 +02:00
environment.systemPackages = with pkgs; [ sony-headphones-client ];
2023-03-19 14:27:51 +01:00
};
}