1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-31 04:04:32 +00:00

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 <cchuqiming@gmail.com>
This commit is contained in:
Qiming Chu 2025-03-16 19:31:59 +08:00 committed by Austin Horstman
parent eae06a96af
commit 46a6d6904b
No known key found for this signature in database

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