diff options
Diffstat (limited to 'keyboard.nix')
-rw-r--r-- | keyboard.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/keyboard.nix b/keyboard.nix new file mode 100644 index 0000000..be64815 --- /dev/null +++ b/keyboard.nix @@ -0,0 +1,26 @@ +{ 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"; + #}; + + environment.systemPackages = [ pkgs.xorg.xkbcomp ]; + services.xserver.displayManager.sessionCommands = "${pkgs.xorg.xkbcomp}/bin/xkbcomp ${compiledLayout} $DISPLAY"; + + i18n.defaultLocale = "en_US.UTF-8"; + + console = { + font = "Lat2-Terminus16"; + #keyMap = "de"; + useXkbConfig = true; # use xkbOptions in tty. + }; +} + |