{ config, pkgs, ... }: let compiledLayout = pkgs.runCommand "keyboard-layout" {} '' ${pkgs.xorg.xkbcomp}/bin/xkbcomp ${./files/neoqwertz.xkb} $out ''; in { services.xserver = { layout = "de, de"; #xkbVariant = ",neo"; xkbOptions = "grp:win_space_toggle"; #displayManager.sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledLayout} $DISPLAY"; }; environment.systemPackages = [ pkgs.xorg.xkbcomp ]; i18n.defaultLocale = "en_US.UTF-8"; console = { font = "Lat2-Terminus16"; #keyMap = "de"; useXkbConfig = true; # use xkbOptions in tty. }; }