work fixes
This commit is contained in:
parent
e272155088
commit
eb494b3a65
4 changed files with 99 additions and 97 deletions
|
|
@ -2,37 +2,38 @@
|
|||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let user = config.user; in
|
||||
with lib; {
|
||||
options.keyboard = {
|
||||
dvorak = {
|
||||
enable = mkEnableOption "use a good keyboard layout on a qwerty keyboard";
|
||||
}: let
|
||||
user = config.user;
|
||||
in
|
||||
with lib; {
|
||||
options.keyboard = {
|
||||
dvorak = {
|
||||
enable = mkEnableOption "use a good keyboard layout on a qwerty keyboard";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
home-manager.users.${user}.imports = [
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
input = {
|
||||
kb_layout = "gb";
|
||||
kb_options = "caps:escape";
|
||||
numlock_by_default = true;
|
||||
};
|
||||
# moonlander is programmed in dvorak!
|
||||
"device:zsa-technology-labs-moonlander-mark-i" = {
|
||||
kb_variant = "";
|
||||
kb_options = "esperanto:qwerty,lv3:ralt_switch";
|
||||
config = {
|
||||
home-manager.users.${user}.imports = [
|
||||
{
|
||||
wayland.windowManager.hyprland = {
|
||||
settings = {
|
||||
input = {
|
||||
kb_layout = "gb";
|
||||
kb_options = "caps:escape";
|
||||
numlock_by_default = true;
|
||||
};
|
||||
# moonlander is programmed in dvorak!
|
||||
"device:zsa-technology-labs-moonlander-mark-i" = {
|
||||
kb_variant = "";
|
||||
kb_options = "esperanto:qwerty,lv3:ralt_switch";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
services.xserver.xkbVariant =
|
||||
if config.keyboard.dvorak.enable
|
||||
then "dvorak"
|
||||
else "";
|
||||
};
|
||||
}
|
||||
}
|
||||
];
|
||||
services.xserver.xkbVariant =
|
||||
if config.keyboard.dvorak.enable
|
||||
then "dvorak"
|
||||
else "";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue