From 8ed51a5bf827fb63e50fa7267e5fc50f0db1a099 Mon Sep 17 00:00:00 2001 From: aster <137767097+aster-void@users.noreply.github.com> Date: Tue, 24 Dec 2024 13:51:58 +0900 Subject: [PATCH 1/3] doc(inputs): add some examples to keyboard layout variant --- modules/input.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/input.nix b/modules/input.nix index 89cbcf71..00ee9081 100644 --- a/modules/input.nix +++ b/modules/input.nix @@ -43,7 +43,14 @@ let variant = lib.mkOption { type = with lib.types; nullOr str; default = null; - example = "eng"; + example = [ + "eng" + "mac" + "dvorak" + # these two examples below exists to tell that the spacer is not consistent (- or _). + "workman-intl" + "colemak_dh_wide_iso" + ]; description = '' Keyboard layout variant. ''; From cf5c933cf9d394e344a0bd0eabd6b6ddf0333514 Mon Sep 17 00:00:00 2001 From: aster <137767097+aster-void@users.noreply.github.com> Date: Tue, 24 Dec 2024 14:36:23 +0900 Subject: [PATCH 2/3] move it from example to description, because it may cause a misconception that the user is supposed to input list --- modules/input.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/input.nix b/modules/input.nix index 00ee9081..34b7f7e2 100644 --- a/modules/input.nix +++ b/modules/input.nix @@ -43,16 +43,10 @@ let variant = lib.mkOption { type = with lib.types; nullOr str; default = null; - example = [ - "eng" - "mac" - "dvorak" - # these two examples below exists to tell that the spacer is not consistent (- or _). - "workman-intl" - "colemak_dh_wide_iso" - ]; + example = "eng"; description = '' Keyboard layout variant. + examples: "mac" "dvorak" "workman-intl" "colemak_dh_wide_iso" ''; apply = builtins.toString; }; From e481fb76d6f1064240152d36335fa1fb1f100649 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Fri, 10 Jan 2025 12:56:30 -0300 Subject: [PATCH 3/3] Update input.nix --- modules/input.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/input.nix b/modules/input.nix index 34b7f7e2..c6020e11 100644 --- a/modules/input.nix +++ b/modules/input.nix @@ -46,7 +46,7 @@ let example = "eng"; description = '' Keyboard layout variant. - examples: "mac" "dvorak" "workman-intl" "colemak_dh_wide_iso" + Examples: "mac", "dvorak", "workman-intl", and "colemak_dh_wide_iso" ''; apply = builtins.toString; };