How to enable night light in KDE

It says “failed to connect to the Window Manager”

Must be something to add in configuration.nix

I just noticed it last week. It used to work before, but is now broken, probably after update to 5.21.

But we will have to wait for someone with more knowledge for answer.