diff --git a/sway.nix b/sway.nix index 6f46cb6..406f3b2 100644 --- a/sway.nix +++ b/sway.nix @@ -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