use socket activated dbus

This commit is contained in:
Gabriel Ebner 2020-09-20 17:00:59 +02:00
parent f52e993906
commit f1fd27093b

@ -50,15 +50,12 @@
firefox = firefox-wayland;
};
services.dbus.socketActivated = true;
programs.sway = {
enable = true;
extraSessionCommands = ''
if [ ! "$DBUS_SESSION_BUS_ADDRESS" ]; then
exec ${pkgs.dbus}/bin/dbus-run-session "$0" "$@"
fi
export DBUS_SESSION_BUS_ADDRESS
export SDL_VIDEODRIVER=wayland
# https://github.com/swaywm/sway/issues/4506