system/modules/home-manager/configs/keyboard.nix

26 lines
518 B
Nix
Raw Normal View History

2024-04-16 02:51:46 +03:00
{ config, lib, ... }:
let
cfg = config.local.keyboard;
in
{
options.local.keyboard = with lib; {
enable = mkEnableOption "base keyboard configs";
variant = mkOption {
description = "keyboard layout variant in us,ru order";
type = types.str;
default = ",";
};
};
config = lib.mkIf cfg.enable {
home.keyboard = {
model = "pc105";
layout = "us,ru";
variant = cfg.variant;
# variant = "dvorak,";
options = [ "grp:win_space_toggle" ];
};
};
}