From b7ce7d5b3f3b2b95476afb39739f40d1f38f5e36 Mon Sep 17 00:00:00 2001 From: Johannes Frankenau Date: Fri, 22 Jun 2018 21:23:58 +0200 Subject: [PATCH] nixos/display-managers: fix loading of module-x11-publish module-x11-publish is only provided by the pulseaudioFull package. --- nixos/modules/services/x11/display-managers/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix index 43ed21c95fee..c934642db5ca 100644 --- a/nixos/modules/services/x11/display-managers/default.nix +++ b/nixos/modules/services/x11/display-managers/default.nix @@ -90,7 +90,9 @@ let } # 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.