1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-11-23 03:29:48 +01:00

populate file: deprecated exclude option

This commit is contained in:
tv 2020-03-17 19:32:46 +01:00
parent ed9fc66582
commit 9c16ab1ce1
2 changed files with 16 additions and 11 deletions

View file

@ -150,18 +150,13 @@ Supported attributes:
whether a file has changed. This is useful when `path` points at files
with mangled timestamps, e.g. the Nix store.
* `exclude` (optional)
List of patterns that should excluded from being synced. The list will be
passed to the `--exclude` option of [`rsync`](https://rsync.samba.org/).
Checkout the filter rules section in the [rsync
manual](https://download.samba.org/pub/rsync/rsync.html) for further
information.
* `filters` (optional)
List of filters that should be passed to rsync. Filters are specified as
attribute sets with the attributes `type` and `pattern`. Supported filter
types are `include` and `exclude`. This allows for more advanced
configurations.
List of filters that should be passed to [`rsync`](https://rsync.samba.org/).
Filters are specified as attribute sets with the attributes `type` and
`pattern`. Supported filter types are `include` and `exclude`.
Checkout the filter rules section in the
[rsync manual](https://download.samba.org/pub/rsync/rsync.html)
for further information.
* `deleteExcluded` (optional)
boolean that controls whether the excluded directories should be deleted

View file

@ -84,6 +84,16 @@
type = lib.types.bool;
};
exclude = lib.mkOption {
apply = x:
if x != [] then
lib.warn
"file.*.exclude is deprecated in favor of file.*.filters"
x
else
x;
description = ''
DEPRECATED, use `filters`.
'';
type = lib.types.listOf lib.types.str;
default = [];
example = [".git"];