all repos — nixfiles @ c755579395a47d25e747ab361d23c760b5079815

System and user configuration, managed by nix and home-manager

audio: switch to pipewire

Alan Pearce
commit

c755579395a47d25e747ab361d23c760b5079815

parent

a846de8177cae01322f5f3af81e9ef64ecc963ba

2 files changed, 6 insertions(+), 10 deletions(-)

jump to
M system/settings/gaming.nixsystem/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.nixsystem/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 ]; }