Virtual keyboard with cosmic

Hi, I’m currently trying to make the virtual keyboard work with the Cosmic Desktop Manager. I’ve set up a distinct systemd service. However, it doesn’t seem to be working.

The Service itself:

systemd.user.services = {

    maliit-keyboard = {
      description = "Maliit virtual keyboard";
      wantedBy = [ "graphical-session.target" ];
      wants = [ "graphical-session.target" ];
      after = [ "graphical-session.target" ];
      serviceConfig = {
        ExecStart = "${pkgs.maliit-keyboard}/bin/maliit-keyboard";
        Restart = "on-failure";
        RestartSec = 1;
        Type = "simple";
      };
    };
  };

The environment variables setup:

  environment = {
sessionVariables = {
      COSMIC_DATA_CONTROL_ENABLED = 1;
      GTK_IM_MODULE = "maliit";
      QT_IM_MODULE = "maliit";
      XMODIFIERS = "@im=maliit";
    };

variables = {
      GITHUB_TOKEN = "'cat ${config.users.users.ulysses.home}/gh_token'";
      SRC_ENDPOINT = "https://sourcegraph.example.com";
      SRC_SRC_ACCESS_TOKEN = "'cat ${config.users.users.ulysses.home}/sourcegraphToken'";
      NIXPKGS_ALLOW_INSECURE = "1";
    };
};

the cosmic service setup:

  services = {
desktopManager.cosmic = {
      enable = true;
      xwayland.enable = true;
    };
};