Enabling the EURKey Layout on NixOS with GNOME and Home-Manager

I recently switched the management of my PC to NixOS and Home-Manager. While everything went smoothly, I noticed that the EURKey Layout was missing in GNOME. It took me some time to enable it again, so hereโ€™s how you can do it.


This guide assumes you have a fully working GNOME setup and Home-Manager configured.


  1. Add the following to your home.nix file:
  dconf.settings = {
    "org/gnome/desktop/input-sources" = {
      show-all-sources = true;
      sources = [
        [ "xkb" "eu" ]
      ];    };
  1. Open the GNOME Settings dialogue.
  2. Navigate to GNOME Keyboard settings.
  3. Add a new input source.
  4. Select English (United States).
  5. In the next menu, select EURKey (US).

Via https://discourse.nixos.org/t/keyboard-layout-with-gnome/21996/9, thanks.