17 lines
379 B
Nix
17 lines
379 B
Nix
{ lib, config, ... }: let
|
|
inherit (lib) mkIf;
|
|
inherit (config.conf) extraLayout;
|
|
in mkIf extraLayout.enable {
|
|
services.xserver.xkb = {
|
|
layout = "custom,us";
|
|
options = "compose:ralt";
|
|
|
|
extraLayouts."custom" = {
|
|
description = "custom dvorak-like layout.";
|
|
languages = [ "en" ];
|
|
symbolsFile = ./custom.xkb;
|
|
};
|
|
};
|
|
|
|
console.keyMap = "us";
|
|
}
|