audio: switch to pipewire
Alan Pearce alan@alanpearce.eu
Thu, 16 Jun 2022 23:22:21 +0200
2 files changed, 6 insertions(+), 10 deletions(-)
M system/settings/gaming.nix → system/settings/gaming.nix
@@ -5,6 +5,7 @@ programs.steam.enable = true; hardware.steam-hardware.enable = true; hardware.opengl.driSupport32Bit = true; hardware.pulseaudio.support32Bit = true; + services.pipewire.alsa.support32Bit = true; systemd = { extraConfig = ''
M system/settings/hardware/audio.nix → system/settings/hardware/audio.nix
@@ -1,21 +1,16 @@ { config, pkgs, ... }: -{ hardware.pulseaudio = { +{ services.pipewire = { enable = true; - support32Bit = true; - daemon.config = { - flat-volumes = "no"; - avoid-resampling = "yes"; - }; - package = if config.hardware.bluetooth.enable - then pkgs.pulseaudioFull - else pkgs.pulseaudio; + audio.enable = true; + alsa.enable = true; + pulse.enable = true; }; sound.enable = true; environment.systemPackages = with pkgs; [ pamixer - pavucontrol + pipecontrol ]; }