wrapper-manager-fds/modules/files: update description and example

This commit is contained in:
Gabriel Arazas 2024-09-28 19:37:00 +08:00
parent fb5d984306
commit 5a04d1670b

View File

@ -55,7 +55,14 @@ in
options.files = lib.mkOption { options.files = lib.mkOption {
type = with lib.types; attrsOf (submodule filesModule); type = with lib.types; attrsOf (submodule filesModule);
description = '' description = ''
A set of files to be exported within the derivation. Extra set of files to be exported within the derivation.
::: {.caution}
Be careful when placing executables in `$out/bin` as it is handled by
wrapper-manager build step. Any files in `$out/bin` that have a
configured wrapper will be overwritten since building the wrapper comes
after installing the files.
:::
''; '';
default = { }; default = { };
example = lib.literalExpression '' example = lib.literalExpression ''
@ -63,10 +70,10 @@ in
"share/example-app/docs".source = ./docs; "share/example-app/docs".source = ./docs;
"etc/xdg".source = ./config; "etc/xdg".source = ./config;
"share/example-app/example-config".text = '''''' "share/example-app/example-config".text = ''''
hello=world hello=world
location=your-home location=INSIDE OF YOUR WALLS
''''''; '''';
} }
''; '';
}; };