nichts/options/common/bluetooth.nix

20 lines
507 B
Nix
Raw Normal View History

2024-04-16 16:04:17 +02:00
{ config, lib, pkgs, ... }:
let
username = 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";
};
}