1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-23 03:19:42 +01:00

raspberry-pi/4: fix usage of mkDefault in audio module

This commit is contained in:
Vincent Breitmoser 2021-08-23 13:42:59 +02:00
parent e45d775c93
commit ad1114ee37

View file

@ -38,9 +38,9 @@ in
# set tsched=0 in pulseaudio config to avoid audio glitches
# see https://wiki.archlinux.org/title/PulseAudio/Troubleshooting#Glitches,_skips_or_crackling
hardware.pulseaudio.configFile = lib.mkDefault pkgs.runCommand "default.pa" {} ''
hardware.pulseaudio.configFile = lib.mkOverride 990 (pkgs.runCommand "default.pa" {} ''
sed 's/module-udev-detect$/module-udev-detect tsched=0/' ${config.hardware.pulseaudio.package}/etc/pulse/default.pa > $out
'';
'');
};
}