about summary refs log tree commit diff
path: root/modules/workstation/hardware/default.nix
blob: bd5bd9ce12e8dbfff7988490aedbc92494feada7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ pkgs, config, ... }:

let
  xcfg = config.services.xserver;

in
{
  i18n.consoleUseXkbConfig = true;
  services.xserver.layout = "dvorak";
  services.xserver.xkbOptions = "ctrl:nocaps";

  environment.variables.XKB_DEFAULT_LAYOUT = xcfg.layout;
  environment.variables.XKB_DEFAULT_OPTIONS = xcfg.xkbOptions;

  services.evscript.enable = true;
  services.evscript.script = ./events.dyon;
}