3
0
Fork 0
forked from mirrors/nixpkgs

nixos/display-managers: fix loading of module-x11-publish

module-x11-publish is only provided by the pulseaudioFull package.
This commit is contained in:
Johannes Frankenau 2018-06-22 21:23:58 +02:00
parent 4d40a0a940
commit b7ce7d5b3f

View file

@ -90,7 +90,9 @@ let
} }
# Publish access credentials in the root window. # Publish access credentials in the root window.
${config.hardware.pulseaudio.package.out}/bin/pactl load-module module-x11-publish "display=$DISPLAY" 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"
fi
''} ''}
# Tell systemd about our $DISPLAY and $XAUTHORITY. # Tell systemd about our $DISPLAY and $XAUTHORITY.