blob: be6481576e8c3c140151b1028f61e8edfe44b67f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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.
};
}
|