From 10ba218384098758549b8748606957e816177241 Mon Sep 17 00:00:00 2001 From: Akshay Date: Thu, 11 May 2023 10:53:37 +0530 Subject: move to pipewire --- hosts/myrtle/configuration.nix | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'hosts') diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index fa6b0d7..be9852e 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix @@ -70,6 +70,16 @@ xdotool ]; + etc = { + "wireplumber/bluetooth.lua.d/51-bluez-config.lua".text = '' + bluez_monitor.properties = { + ["bluez5.enable-sbc-xq"] = true, + ["bluez5.enable-msbc"] = true, + ["bluez5.enable-hw-volume"] = true, + ["bluez5.headset-roles"] = "[ hsp_hs hsp_ag hfp_hf hfp_ag ]" + } + ''; + }; }; @@ -90,14 +100,14 @@ adb.enable = true; }; - sound.enable = true; + # sound.enable = true; hardware = { opengl.driSupport = true; - pulseaudio = { - enable = true; - package = pkgs.pulseaudioFull; - }; + # pulseaudio = { + # enable = true; + # package = pkgs.pulseaudioFull; + # }; bluetooth = { enable = true; powerOnBoot = true; @@ -170,6 +180,13 @@ auto-cpufreq.enable = true; + pipewire = { + enable = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + }; + }; systemd.sleep.extraConfig = '' -- cgit v1.2.3