blob: 8c5545d1e8eb0a438c43f533f108954f28ba1425 (
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.
};
}
|