feat(nvim): add option for keyboard layouts
parent
4a5dbf9f62
commit
579e711735
|
@ -18,6 +18,7 @@
|
||||||
personal.enable = true;
|
personal.enable = true;
|
||||||
};
|
};
|
||||||
programs.hyprland.nvidiaSupport = true;
|
programs.hyprland.nvidiaSupport = true;
|
||||||
|
programs.hyprland.keyboardLayouts = [ "us" "de" ];
|
||||||
services.mullvad.enable = true;
|
services.mullvad.enable = true;
|
||||||
programs.ledger.enable = true;
|
programs.ledger.enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -25,7 +25,7 @@ in
|
||||||
|
|
||||||
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
||||||
input {
|
input {
|
||||||
kb_layout = de,us
|
kb_layout = ${concatStringsSep "," cfg.keyboardLayouts}
|
||||||
kb_variant =
|
kb_variant =
|
||||||
kb_model =
|
kb_model =
|
||||||
kb_options = grp:win_space_toggle,caps:escape
|
kb_options = grp:win_space_toggle,caps:escape
|
||||||
|
|
|
@ -25,6 +25,11 @@ in
|
||||||
description = "enable window shadows";
|
description = "enable window shadows";
|
||||||
default = true;
|
default = true;
|
||||||
};
|
};
|
||||||
|
keyboardLayouts = mkOption {
|
||||||
|
type = types.listOf types.str;
|
||||||
|
description = "list of keyboard layouts";
|
||||||
|
default = [ "de" "us" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
Loading…
Reference in New Issue