nixos/modules/hardware/bluetooth/default.nix
Felix Buehler 28857da0a5
Some checks failed
/ Build Nix targets (push) Has been cancelled
hardware/bluetooth: enable powerOnBoot
2025-12-29 12:32:11 +01:00

28 lines
519 B
Nix

{
config,
lib,
pkgs,
...
}:
let
cfg = config.my.hardware.bluetooth;
in
{
options.my.hardware.bluetooth = {
enable = lib.mkEnableOption "bluetooth configuration";
};
config = lib.mkIf cfg.enable {
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
};
};
services.blueman.enable = true;
environment.systemPackages = with pkgs; [ sony-headphones-client ];
};
}