US international keymap for console

I have just installed NixOS in my homelab. I don’t plan on having xserver on it, so I was wondering if there is a way of setting the keymap attribute to something that understand dead keys. My keyboard has a US layout, but since I speak Portuguese, more often than not I have to type characters like ç, á, é, and so on.

Most of the threads I found in Discourse talked about the XServer setup.

Have you tried the useXkbConfig option set to true? See NixOS Search

For the xkb settings: I’m running the following for a US International layout to get German Umlauts:

  services.xserver = {
    xkb = {
      layout = "us";
      options = "ctrl:nocaps";
      variant = "altgr-intl";
    };
  };