How do I make hyprland work with greetd (or ly if possible)?

I have no idea what I’m doing at this point.
I used nixos-rebuild switch --flake . in the folder that contains this: https://github.com/TZIKADA/my-nix.git
after that I rebooted, and got stuck in tty, it just doesn’t log in.

Rollback and dump the journal to pastebin. Or swap to a different tty and dump the logs. Someone might be able to Intuit what is wrong just by looking at your config, but at first glance the greets setup looks ok to me.

EDIT: I guess one thing I’d check is that hyprland is on the path for greety. I typically use the full store path.

Have you tried importing your wm-configuration.nix in any .nix file? I tried searching for any clues about importing it in your project using grep -R "wm-configuration.nix" . but got nothing. Since this is your own project I don’t know if you have imported it somewhere implicitly, if not, try importing it and then try building system again.

EDIT:
BTW I am using sway with greetd. Here is my greetd configuration, it works well.

  services.greetd = {
    enable = true;
    settings = {
      default_session = {
        command = lib.mkDefault "${pkgs.tuigreet}/bin/tuigreet --time --cmd 'systemd-run --user --scope --unit=sway sway' --user-menu --user-menu-min-uid 1000";
        user = "greeter";
      };
    };
  };

This is how I use Hyprland with tuigreet:

hyprland.enable = true;

services.greetd = {
  enable = true;
  settings.default_session.command = "${pkgs.tuigreet}/bin/tuigreet --xsessions ${config.services.displayManager.sessionData.desktops}/share/xsessions --sessions ${config.services.displayManager.sessionData.desktops}/share/wayland-sessions --remember --remember-user-session --user-menu --user-menu-min-uid 1000 --asterisks --power-shutdown 'shutdown -P now' --power-reboot 'shutdown -r now'";
};