mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-12-23 18:19:44 +01:00
Merge pull request #308 from Valodim/rpi-4-audio-3
raspberry-pi/4: fix usage of mkDefault in audio module
This commit is contained in:
commit
de40acde6c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
'';
|
||||
'');
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue