diff --git a/modules/input.nix b/modules/input.nix index 2a75142b..babdf305 100644 --- a/modules/input.nix +++ b/modules/input.nix @@ -51,6 +51,15 @@ let ''; apply = builtins.toString; }; + displayName = mkOption { + type = with types; nullOr str; + default = null; + example = "us"; + description = '' + Keyboard layout display name. + ''; + apply = builtins.toString; + }; }; }; @@ -414,6 +423,11 @@ in layout = "ca"; variant = "eng"; } + { + layout = "us"; + variant = "intl"; + displayName = "usi"; + } ]; description = '' Keyboard layouts to use. @@ -464,6 +478,7 @@ in Use.value = true; LayoutList.value = strings.concatStringsSep "," (map (l: l.layout) cfg.input.keyboard.layouts); VariantList.value = strings.concatStringsSep "," (map (l: l.variant) cfg.input.keyboard.layouts); + DisplayNames.value = strings.concatStringsSep "," (map (l: l.displayName) cfg.input.keyboard.layouts); }; }) (mkIf (cfg.input.keyboard.options != null) {