Text not displaying in niri dialogs (font issue)

I am trying to install niri, which seems to have gone well, except that niri’s dialogs like exit confirmation or the print screen dialog display the little boxes instead of text, so it doesn’t seem to see installed fonts, or there’s an encoding problem. Programs seem to find fonts as usual, so far as I can tell. Can someone please help?

I installed niri as a module, without The Flake or home manager.

Thanks

{ config, pkgs, ... }:

{
  programs = {
    niri.enable = true;
  };

  services.gnome.gnome-keyring.enable = true;
  security.pam.services.swaylock = { };

  environment.systemPackages = with pkgs; [
    alacritty
    waybar
    fuzzel
    swaylock
    mako
    swayidle
    xwayland-satellite
  ];
}
```
\c