How to show no text on boot and auto-login into WM?

Right now it shows the TTY for a moment before auto-login to Hyprland. Relevent pieces of config:

environment.loginShellInit = '' if uwsm check may-start; then exec uwsm start hyprland-uwsm.desktop > /dev/null 2>&1 fi '';
services.getty.autologinUser = "myUser";
  boot = {
    loader = {
      timeout = 0; 
      efi.canTouchEfiVariables = false;
      systemd-boot.enable = true;
    };
    # Silent boot
    plymouth.enable = true;
    consoleLogLevel = 0;
    initrd.verbose = false;
    kernelModules = [ "uinput" ];
    kernelParams = [
      "zswap.enabled=1"
      "zswap.compressor=zstd"
      "zswap.zpool=zsmalloc"
      "zswap.max_pool_percent=75"
      "apple_dcp.show_notch=1"
      "quiet"
      "splash"
      "rd.systemd.show_status=false"
      "rd.udev.log_level=3"
      "udev.log_priority=3"
      "boot.shell_on_fail"
    ];
  }

Try this
https://search.nixos.org/options?channel=25.05&show=boot.initrd.systemd.enable&from=0&size=50&sort=relevance&type=packages&query=boot.initrd.systemd.enable

I got a solution from this comment. What works for me is keeping the config below but taking out environment.loginShellInit and then adding this:

	services = {
		displayManager = {
			autoLogin.user = "your-name";
			sddm = {
					enable = true;
					wayland.enable = true;
				};
			defaultSession = "hyprland-uwsm");
		};
	};

The config I wrote in my post

environment.loginShellInit = '' if uwsm check may-start; then exec uwsm start hyprland-uwsm.desktop > /dev/null 2>&1 fi '';
services.getty.autologinUser = "myUser";
  boot = {
    loader = {
      timeout = 0; 
      efi.canTouchEfiVariables = false;
      systemd-boot.enable = true;
    };
    # Silent boot
    plymouth.enable = true;
    consoleLogLevel = 0;
    initrd.verbose = false;
    kernelModules = [ "uinput" ];
    kernelParams = [
      "zswap.enabled=1"
      "zswap.compressor=zstd"
      "zswap.zpool=zsmalloc"
      "zswap.max_pool_percent=75"
      "apple_dcp.show_notch=1"
      "quiet"
      "splash"
      "rd.systemd.show_status=false"
      "rd.udev.log_level=3"
      "udev.log_priority=3"
      "boot.shell_on_fail"
    ];
  }