nichts/options/common/bluetooth.nix
2024-07-06 15:53:16 +02:00

23 lines
473 B
Nix

{
config,
lib,
pkgs,
...
}: let
inherit (config.modules.other.system) username;
in {
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
services.blueman.enable = true;
# Bluetooth headset media control buttons
systemd.user.services.mpris-proxy = {
description = "Mpris proxy";
after = ["network.target" "sound.target"];
wantedBy = ["default.target"];
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
};
}