Qwerty-fr keyboard layout

Hi, I’m trying NixOS for the first time.

I want to use qwerty-fr (https://qwerty-fr.org/) layout which is not in nixpkgs.

I tried to follow the documentation : NixOS 23.11 manual | Nix & NixOS

Here is my config :

  services.xserver = {
    layout = "qwerty-fr";
    xkbVariant = "";
  };

  services.xserver.xkb.extraLayouts.qwerty-fr = {
      description = "US keyboard with french symbols - AltGr combination";
      languages   = [ "eng" ];
      symbolsFile = /etc/nixos/symbols/us_qwerty-fr;
 };

nixos-rebuild switch works without complaining, but I can’t find qwerty-fr in Gnome keyboard layouts.

localectl list-keymaps doesn’t work (localectl fails to find console keyboard definitions · Issue #286283 · NixOS/nixpkgs · GitHub)

NixOS 23.11 with Gnome (I tried Wayland and Xorg).

Uh :thinking: actually I have the correct layout on Xorg but not Wayland (I guess this is normal since services.xserver.layout is for xserver :upside_down_face: ).

However :

  • the layout does not appear in Gnome layouts
  • using Wayland, I get the US layout and when I switch again to Xorg, I still have the US layout (I get the qwerty-fr layout back only after reboot).

Anyway I can stay on Xorg for now.