summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-12 20:14:06 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-12 20:14:06 +0100
commit7c4e16c951fca7279329b1e1c912b76e4203c633 (patch)
treedec42b0ce399710e150c21dc58e3aaa318559f03
parentf5fc458891cecffe22e4d77d75f1ad26a6417298 (diff)
downloadnixos-7c4e16c951fca7279329b1e1c912b76e4203c633.tar
nixos-7c4e16c951fca7279329b1e1c912b76e4203c633.tar.gz
nixos-7c4e16c951fca7279329b1e1c912b76e4203c633.tar.bz2
nixos-7c4e16c951fca7279329b1e1c912b76e4203c633.tar.xz
nixos-7c4e16c951fca7279329b1e1c912b76e4203c633.zip
sif: pipewire
-rw-r--r--hosts/sif/default.nix41
1 files changed, 37 insertions, 4 deletions
diff --git a/hosts/sif/default.nix b/hosts/sif/default.nix
index 1460ad2a..a74c9184 100644
--- a/hosts/sif/default.nix
+++ b/hosts/sif/default.nix
@@ -325,15 +325,48 @@ in {
325 groups.plugdev = {}; 325 groups.plugdev = {};
326 }; 326 };
327 327
328 hardware = { 328 security.rtkit.enable = true;
329 pulseaudio = { 329 services.pipewire = {
330 enable = true;
331 alsa.enable = true;
332 alsa.support32Bit = true;
333 pulse.enable = true;
334 jack.enable = true;
335
336 media-session = {
330 enable = true; 337 enable = true;
331 package = with pkgs; pulseaudioFull; 338 config.bluez-monitor.rules = [
332 support32Bit = true; 339 { # Matches all cards
340 matches = [ { "device.name" = "~bluez_card.*"; } ];
341 actions = {
342 "update-props" = {
343 "bluez5.reconnect-profiles" = [ "hfp_hf" "hsp_hs" "a2dp_sink" ];
344 # mSBC is not expected to work on all headset + adapter combinations.
345 "bluez5.msbc-support" = true;
346 };
347 };
348 }
349 {
350 matches = [
351 # Matches all sources
352 { "node.name" = "~bluez_input.*"; }
353 # Matches all outputs
354 { "node.name" = "~bluez_output.*"; }
355 ];
356 actions = {
357 "update-props" = {
358 "node.pause-on-idle" = false;
359 };
360 };
361 }
362 ];
333 }; 363 };
364 };
334 365
366 hardware = {
335 bluetooth = { 367 bluetooth = {
336 enable = true; 368 enable = true;
369 package = pkgs.bluezFull;
337 settings = { 370 settings = {
338 General = { 371 General = {
339 Enable = "Source,Sink,Media,Socket"; 372 Enable = "Source,Sink,Media,Socket";