From d35952daf84c755e7c70bf705ed219d2c924422b Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 22 Sep 2023 23:13:26 +0200 Subject: [PATCH] feat: changes for bluetooth --- hosts/configuration.nix | 12 ++++++++++++ hosts/home.nix | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 24862a8..cab0d24 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -92,6 +92,18 @@ }; }; + environment.etc = { + "wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = '' + bluez_monitor.properties = { + ["bluez5.msbc-support"] = true; + ["bluez5.sbc-xq-support"] = true; + ["bluez5.enable-faststream"] = true; + ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag ]"; + ["bluez5.hfphsp-backend"] = "hsphfpd"; + } + ''; + }; + systemd.services."home-manager-${user}".serviceConfig.TimeoutStartSec = lib.mkForce "20m"; nix = { # Nix Package Manager settings diff --git a/hosts/home.nix b/hosts/home.nix index 4ede6a9..0105eab 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -180,4 +180,11 @@ Requires = [ "graphical-session-pre.target" ]; }; }; + + systemd.user.services.mpris-proxy = { + description = "Mpris proxy"; + after = [ "network.target" "sound.target" ]; + wantedBy = [ "default.target" ]; + serviceConfig.ExecStart = "${pkgs.bluez}/bin/mpris-proxy"; + }; } -- 2.48.1