22 lines
408 B
Nix
22 lines
408 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";
|
|
}
|