summary refs log tree commit diff stats
path: root/modules/hardware/colemak.nix
blob: b8218e67cd358218aa2516fa33b6fd5e4e80a2e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, pkgs, ... }:

{ i18n.consoleKeyMap = "colemak/en-latin9";
  services.kmscon = {
    extraConfig = ''
      xkb-model=pc104
      xkb-layout=us
      xkb-variant=colemak
      xkb-options="altwin:prtsc_rwin"
    '';
  };
  services.xserver = {
    layout = "us,us";
    xkbVariant = "colemak,";
    xkbOptions = "grp:shifts_toggle,altwin:prtsc_rwin";
    displayManager.sessionCommands = ''
      # Needed for pass/rofi-pass autotype
      ${pkgs.xlibs.setxkbmap}/bin/setxkbmap us,us -variant colemak,
    '';
  };
}