From 6ce119d87106bea84f0c4af80a4af5ca86ba4a7b Mon Sep 17 00:00:00 2001 From: oddlama Date: Sat, 2 Mar 2024 13:25:21 +0100 Subject: [PATCH] chore: update pipewire to use new extraConfig --- modules/optional/sound.nix | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/modules/optional/sound.nix b/modules/optional/sound.nix index 3ba9619..75fe859 100644 --- a/modules/optional/sound.nix +++ b/modules/optional/sound.nix @@ -23,20 +23,15 @@ lib.optionalAttrs (!minimal) { jack.enable = true; pulse.enable = true; wireplumber.enable = true; + extraConfig.pipewire."99-allowed-rates"."context.properties"."default.clock.allowed-rates" = [ + 44100 + 48000 + 88200 + 96000 + 176400 + 192000 + ]; }; environment.systemPackages = with pkgs; [pulseaudio pulsemixer]; - environment.etc = { - # Allow pipewire to dynamically adjust the rate sent to the devices based on the playback stream - "pipewire/pipewire.conf.d/99-allowed-rates.conf".text = builtins.toJSON { - "context.properties"."default.clock.allowed-rates" = [ - 44100 - 48000 - 88200 - 96000 - 176400 - 192000 - ]; - }; - }; }