blob: dea986397bcbc6e0de0d6f04465e5709dcad7e5b (
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";
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.
};
}
|