From 1d4dcc04ab597761aba1ff9a906b5d7d18d29eee Mon Sep 17 00:00:00 2001 From: coolneng Date: Sat, 20 Feb 2021 12:04:23 +0100 Subject: [PATCH] Replace Pulseaudio with PipeWire --- modules/audio.nix | 12 ++++++++---- modules/gui.nix | 2 -- modules/software.nix | 1 + 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/audio.nix b/modules/audio.nix index 724d88c..15cafe8 100644 --- a/modules/audio.nix +++ b/modules/audio.nix @@ -8,14 +8,18 @@ in { # Enable ALSA sound.enable = true; - # Configure PulseAudio with mopidy tweaks - hardware.pulseaudio = { + # Configure pipewire as sound server + services.pipewire = { enable = true; - tcp = { + alsa = { enable = true; - anonymousClients.allowedIpRanges = [ "127.0.0.1" ]; + support32Bit = true; }; + pulse.enable = true; + jack.enable = true; + media-session.enable = true; }; + security.rtkit.enable = true; # Set up Mopidy services.mopidy = { diff --git a/modules/gui.nix b/modules/gui.nix index 71b6e9b..d47edaf 100644 --- a/modules/gui.nix +++ b/modules/gui.nix @@ -123,8 +123,6 @@ in { programs.browserpass.enable = true; # Enable WebRTC screensharing - services.pipewire.enable = true; - xdg.portal = { enable = true; extraPortals = with pkgs; [ xdg-desktop-portal-wlr ]; diff --git a/modules/software.nix b/modules/software.nix index a2fddc8..997c862 100644 --- a/modules/software.nix +++ b/modules/software.nix @@ -43,6 +43,7 @@ ncmpcpp mpc_cli alsa-firmware + pulsemixer # Productivity fff zathura