Adding a keyboard layout and switching to it doesn't work

Hey!
I’ve been trying to get my keyboard layout figured out, but I can’t seem to get it right and have the 2 layouts.
Here’s the current config:

# Enable the X11 windowing system.
  services.xserver.enable = true;

  # Enable the GNOME Desktop Environment.
  services.xserver.displayManager.gdm.enable = true;
  services.xserver.desktopManager.gnome.enable = true;

  # Configure keymap in X11
  services.xserver = {
    exportConfiguration = true;
    layout = "us,il";
    xkbOptions = "grp:alt_shift_toggle";
  };

I am using GNOME, and after rebuilding I can’t use the alt shift to toggle, as it doesn’t work.

GNOME supports both X11 and Wayland so it manages the keyboard layouts itself (only using the X config as a seed). See Problem with `xkbOptions` - it doesn't seem to take effect

Thank you very much! :>

Hey! Could you share what you did? I read the topic linked by @jtojnar, but am still struggling to understand how to fix the problem I have which seems to be of similar nature. If you could help, please see my topic: Strange xkbOptions behavior (GNOME) - #2 by cipher.