Skip to content

Commit 05b55ef

Browse files
committed
fix pipewire config
1 parent 5b3976b commit 05b55ef

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

desktop/configuration/services.nix

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,24 @@
114114
};
115115
};
116116
pipewire = {
117-
configPackages = [
118-
(pkgs.writeTextDir "share/pipewire/pipewire.conf.d/10-high-sample-rate.conf" ''
119-
context.properties = {
120-
default.clock.allowed-rates = [ 192000 384000 768000 ]
121-
default.clock.rate = 192000
122-
}
123-
'')
124-
];
117+
extraConfig = {
118+
pipewire = {
119+
"92-low-latency" = {
120+
"context.properties" = {
121+
"default.clock.quantum" = 512;
122+
"default.clock.min-quantum" = 512;
123+
"default.clock.max-quantum" = 512;
124+
};
125+
};
126+
"10-high-sample-rate" = {
127+
"context.properties" = {
128+
"default.clock.allowed-rates" = [ 192000 384000 768000 ];
129+
"default.clock.rate" = 768000;
130+
# "default.clock.rate" = 192000;
131+
};
132+
};
133+
};
134+
};
125135
};
126136
hardware.openrgb = {
127137
enable = false;

0 commit comments

Comments
 (0)