From 894a5c9828009727121db2f7f60938ee6e650a26 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Tue, 5 May 2026 21:19:29 +0100 Subject: [PATCH] Tweaked pipewire settings for high/dynamic bitrate audio --- nixos/worklaptop/services.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/nixos/worklaptop/services.nix b/nixos/worklaptop/services.nix index 9c8a99b..f59a580 100644 --- a/nixos/worklaptop/services.nix +++ b/nixos/worklaptop/services.nix @@ -29,6 +29,28 @@ alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; + + extraConfig.pipewire."99-high-res-audio" = { + "context.properties" = { + "default.clock.rate" = 48000; + "default.clock.allowed-rates" = [44100 48000 88200 96000 176400 192000]; + }; + }; + + wireplumber.extraConfig."10-high-res-audio" = { + "monitor.alsa.rules" = [ + { + matches = [ + {"node.name" = "~alsa_output.*";} + ]; + actions = { + update-props = { + "audio.format" = "S32LE"; + }; + }; + } + ]; + }; }; gvfs.enable = true;