zsh: update zsh initContent example to use lib.literalExpression (#6637)

Update the `initContent` option example in `zsh.nix` to use
`lib.literalExpression` for correctly display in documentation.

Signed-off-by: Qiming Chu <cchuqiming@gmail.com>
This commit is contained in:
Qiming Chu
2025-03-18 04:24:59 +08:00
committed by GitHub
parent 18e7d54899
commit b870fb2d62

View File

@@ -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`.";
};