fix: prevent example of persistent-others from evaluating

This commit is contained in:
ed9w2in6 2025-05-01 19:00:58 +08:00
parent 5875113d74
commit 44c5d10416

View file

@ -236,13 +236,14 @@ in {
in
types.nullOr (types.listOf (types.coercedTo simpleType toTagged taggedType));
default = null;
example = [
example = lib.literalExpression ''
[
./flake.nix
"/Volumes"
{ folder = "/Users/@username@/Downloads"; }
{ folder = { path = "/Users/@username@/.emacs.d"; showas = "grid"; }; }
{ file = "/Users/@username@/Desktop/this_is_a_file"; }
];
{ file = "/Users/@username@/Desktop/this_is_a_file"; }
]'';
description = ''
Persistent files, and folders in the dock.
'';