summaryrefslogtreecommitdiff
path: root/nixos/modules/keyboard.nix
blob: 69ab14a8cf7358c948eba30d8fe3d43828e32a99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, lib, pkgs, ... }:
with lib;

let 
  cfg = config.eth.keyboard;

in {

  options.eth.keyboard = {
    enable = mkEnableOption "Eth's keyboard preferences";
  };

  config = mkIf cfg.enable {

    console.useXkbConfig = true;

    services.xserver = {
      layout = "us";
      xkbVariant = "colemak";
      xkbOptions = "caps:escape";
    };

  };
}