In Niri in Nixos, the theme changes to light

After switching to Niri, every time the system is restarted, the theme in Zen becomes light, even though the userChrome theme is set.
This can be fixed by exiting Niri, going to a different desktop environment, opening Zen there, and returning to Niri