aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/pipewire.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/modules/pipewire.nix')
-rw-r--r--nix/modules/pipewire.nix30
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;
+ };
+ };
+}