From b9087c333b61ab34fe7e69db56b25dbb95f24715 Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Sat, 30 Nov 2024 20:22:44 -0600 Subject: [PATCH] switch from pulseaudio to pipewire --- sys/platforms/posixlycorrect/default.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/sys/platforms/posixlycorrect/default.nix b/sys/platforms/posixlycorrect/default.nix index 3a18f9b..6e0ae3c 100644 --- a/sys/platforms/posixlycorrect/default.nix +++ b/sys/platforms/posixlycorrect/default.nix @@ -50,8 +50,23 @@ hardware.opengl.enable = true; # Enable sound. - sound.enable = true; - hardware.pulseaudio.enable = true; + # Remove sound.enable or set it to false if you had it set previously, as sound.enable is only meant for ALSA-based configurations + sound.enable = false; + + security.rtkit.enable = true; + + services.pipewire = { + enable = true; + + alsa = { + enable = true; + support32Bit = true; + }; + + jack.enable = true; + pulse.enable = true; + wireplumber.enable = true; + }; programs.zsh.enable = true; environment.pathsToLink = ["/share/zsh"];