nichts/options/common/bluetooth.nix

24 lines
474 B
Nix
Raw Normal View History

2024-05-22 14:29:45 +02:00
{
config,
lib,
pkgs,
...
}: let
username = config.modules.other.system.username;
2024-04-16 16:04:17 +02:00
in {
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
2024-04-16 16:04:17 +02:00
services.blueman.enable = true;
2024-04-16 16:04:17 +02:00
# Bluetooth headset media control buttons
systemd.user.services.mpris-proxy = {
description = "Mpris proxy";
2024-05-22 14:29:45 +02:00
after = ["network.target" "sound.target"];
wantedBy = ["default.target"];
serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy";
};
2024-04-16 16:04:17 +02:00
}