23 lines
403 B
Nix
23 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;
|
||
|
};
|
||
|
|
||
|
}
|