Enable numlock on GDM?

Thank you for detailed explanation, I’m amazed of how powerful NixOS can be.
To make it work, I’ve added a new user - gdm to home-manager, and the following piece of code made it numlock stay on:

home-manager.users.gdm = { lib, ... }: {
  dconf.settings = {
    "org/gnome/desktop/peripherals/keyboard" = {
      numlock-state = true;
      remember-numlock-state = true;
    };
  };
  home.stateVersion = "23.05";
};

Really grateful for the help and teaching me new stuff. I’m newbie when it comes to NixOS.