feat(nvim): add option for keyboard layouts

This commit is contained in:
Moritz Böhme 2023-06-25 10:58:39 +02:00
parent 4a5dbf9f62
commit 579e711735
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
3 changed files with 7 additions and 1 deletions

View file

@ -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;
}; };

View file

@ -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

View file

@ -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 {