From 46a6d6904b10e289c89a2ead0b407691237a2a54 Mon Sep 17 00:00:00 2001 From: Qiming Chu Date: Sun, 16 Mar 2025 19:31:59 +0800 Subject: [PATCH] zsh: update zsh initContent example to use lib.literalExpression Update the `initContent` option example in `zsh.nix` to use `lib.literalExpression` for correctly display in documentation. Signed-off-by: Qiming Chu --- modules/programs/zsh.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index 9d2631ace..c834a374a 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -455,8 +455,10 @@ in initContent = mkOption { default = ""; type = types.lines; - example = lib.mkOrder 1000 '' - echo "Hello, initContent!" + example = lib.literalExpression '' + lib.mkOrder 1000 '''' + echo "Hello zsh initContent!" + ''''; ''; description = "Content to be added to {file}`.zshrc`. To specify the order, use `lib.mkOrder`."; };