I have found a solution which seems to fix the issue (fix for xdg issue · ketamin00/nixos-config@5eb178a · GitHub). Instead of running sway through 'sway' i run it through dbus-run-session sway.
Im still interested in hearing of any other solutions, as this doesn’t seem like a great solution. I still have no idea what caused the issue