1
Fork 0
mirror of https://github.com/RGBCube/agenix synced 2025-07-29 09:47:44 +00:00

doc: fix defaultText by adding literalExpression

I also remove an unnecessary defaultText and fix a typo.
This commit is contained in:
Lin Jian 2023-06-26 22:02:28 +08:00
parent db5637d10f
commit 0d94960783
No known key found for this signature in database
GPG key ID: A6698D36434F75A5
2 changed files with 25 additions and 5 deletions

View file

@ -149,9 +149,10 @@ with lib; let
else "$XDG_RUNTIME_DIR";
in "${baseDir}/${dir}";
userDirectoryDescription = dir: ''
"$XDG_RUNTIME_DIR"/${dir} on linux or "$(getconf DARWIN_USER_TEMP_DIR)"/${dir} on darwin.
'';
userDirectoryDescription = dir:
literalExpression ''
"$XDG_RUNTIME_DIR"/${dir} on linux or "$(getconf DARWIN_USER_TEMP_DIR)"/${dir} on darwin.
'';
in {
options.age = {
package = mkPackageOption pkgs "rage" {};
@ -170,7 +171,7 @@ in {
"${config.home.homeDirectory}/.ssh/id_ed25519"
"${config.home.homeDirectory}/.ssh/id_rsa"
];
defaultText = litteralExpression ''
defaultText = literalExpression ''
[
"''${config.home.homeDirectory}/.ssh/id_ed25519"
"''${config.home.homeDirectory}/.ssh/id_rsa"