2024-04-16 02:51:46 +03:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.local.keyboard;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.local.keyboard = with lib; {
|
|
|
|
enable = mkEnableOption "base keyboard configuration";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-06-03 00:08:07 +03:00
|
|
|
services.xserver.xkb = {
|
|
|
|
model = "pc105";
|
2024-04-16 02:51:46 +03:00
|
|
|
layout = "us,us";
|
2024-06-03 00:08:07 +03:00
|
|
|
variant = "dvorak,";
|
|
|
|
options = "grp:win_space_toggle";
|
2024-04-16 02:51:46 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
console.useXkbConfig = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|