system/modules/nixos/configs/keyboard.nix

22 lines
403 B
Nix

{ config, pkgs, lib, ... }:
let
cfg = config.local.keyboard;
in
{
options.local.keyboard = with lib; {
enable = mkEnableOption "base keyboard configuration";
};
config = lib.mkIf cfg.enable {
services.xserver = {
xkbModel = "pc105";
layout = "us,us";
xkbVariant = "dvorak,";
xkbOptions = "grp:win_space_toggle";
};
console.useXkbConfig = true;
};
}