From cf6e0f6756fdad862e7904a1530d0193b51a34cc Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Sat, 19 Mar 2022 20:22:26 -0700 Subject: [PATCH] turn off pulseaudio to fix audio issues --- nix/system/configuration.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/nix/system/configuration.nix b/nix/system/configuration.nix index ba263e5..9df21f0 100644 --- a/nix/system/configuration.nix +++ b/nix/system/configuration.nix @@ -113,14 +113,19 @@ # Enable sound. - sound.enable = true; - hardware.pulseaudio = { + # sound.enable turns on pulseaudio, which conflicts with pipwire. As + # Pipewire is now enabled by default (??) we should not enable the default + # sound provider. + # https://github.com/NixOS/nixpkgs/issues/163066 + # sound.enable = true; + hardware.pulseaudio.enable = false; + services.pipewire = { enable = true; - # The full package is necessary to allow bluetooth audio devices. - package = pkgs.pulseaudioFull; + alsa.enable = true; + jack.enable = true; + pulse.enable = true; }; - # Enable touchpad support. services.xserver.libinput.enable = true;