diff --git a/modules/audio/default.nix b/modules/audio/default.nix index 8ff6f2e6..2ecd1826 100644 --- a/modules/audio/default.nix +++ b/modules/audio/default.nix @@ -73,6 +73,17 @@ in { alsa.enable = true; alsa.support32Bit = true; pulse.enable = true; + + config.pipewire = { + context.default.clock = { + allowed-rates = [44100 48000 88200 96000]; + rate = 44100; + quantum = 2048; + min-quantum = 1024; + max-quantum = 4096; + }; + }; + config.pipewire-pulse = builtins.fromJSON (builtins.readFile ./pipewire-pulse.conf.json); }; # Make pulseaudio listen on port 4713 for mopidy, extending the default