diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-16 00:13:06 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-16 00:13:06 -0800 |
commit | 2dff9d2b61244fed49136028d0e0f6ae3ae759cf (patch) | |
tree | b94dabd4a159ed19705c109cd9047a724ddbd4e2 /nix/modules/pipewire.nix | |
parent | dd461e48043dabee4694e2b200f4c1d9cfdbc3d9 (diff) |
modules about done
Diffstat (limited to 'nix/modules/pipewire.nix')
-rw-r--r-- | nix/modules/pipewire.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nix/modules/pipewire.nix b/nix/modules/pipewire.nix new file mode 100644 index 0000000..5f3e8ab --- /dev/null +++ b/nix/modules/pipewire.nix @@ -0,0 +1,30 @@ +{ lib, config, ... }: +{ + enable = lib.mkDefault config.monorepo.profiles.pipewire.enable; + alsa = { + enable = true; + support32Bit = true; + }; + pulse.enable = true; + jack.enable = true; + wireplumber.enable = true; + extraConfig.pipewire-pulse."92-low-latency" = { + "context.properties" = [ + { + name = "libpipewire-module-protocol-pulse"; + args = { }; + } + ]; + "pulse.properties" = { + "pulse.min.req" = "32/48000"; + "pulse.default.req" = "32/48000"; + "pulse.max.req" = "32/48000"; + "pulse.min.quantum" = "32/48000"; + "pulse.max.quantum" = "32/48000"; + }; + "stream.properties" = { + "node.latency" = "32/48000"; + "resample.quality" = 1; + }; + }; +} |