display-managers: rely on socket to activate pulseaudio

This commit is contained in:
Edmund Wu 2018-08-10 12:43:47 -04:00
parent 285580c026
commit ced374cf98
No known key found for this signature in database
GPG Key ID: 44AB01A633AE0F06

View File

@ -56,10 +56,6 @@ let
# Start PulseAudio if enabled.
${optionalString (config.hardware.pulseaudio.enable) ''
${optionalString (!config.hardware.pulseaudio.systemWide)
"${config.hardware.pulseaudio.package.out}/bin/pulseaudio --start"
}
# Publish access credentials in the root window.
if ${config.hardware.pulseaudio.package.out}/bin/pulseaudio --dump-modules | grep module-x11-publish &> /dev/null; then
${config.hardware.pulseaudio.package.out}/bin/pactl load-module module-x11-publish "display=$DISPLAY"