mirror of
https://cgit.krebsco.de/krops
synced 2024-12-03 16:39:50 +01:00
populate file: deprecated exclude option
This commit is contained in:
parent
ed9fc66582
commit
9c16ab1ce1
2 changed files with 16 additions and 11 deletions
17
README.md
17
README.md
|
@ -150,18 +150,13 @@ Supported attributes:
|
||||||
whether a file has changed. This is useful when `path` points at files
|
whether a file has changed. This is useful when `path` points at files
|
||||||
with mangled timestamps, e.g. the Nix store.
|
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)
|
* `filters` (optional)
|
||||||
List of filters that should be passed to rsync. Filters are specified as
|
List of filters that should be passed to [`rsync`](https://rsync.samba.org/).
|
||||||
attribute sets with the attributes `type` and `pattern`. Supported filter
|
Filters are specified as attribute sets with the attributes `type` and
|
||||||
types are `include` and `exclude`. This allows for more advanced
|
`pattern`. Supported filter types are `include` and `exclude`.
|
||||||
configurations.
|
Checkout the filter rules section in the
|
||||||
|
[rsync manual](https://download.samba.org/pub/rsync/rsync.html)
|
||||||
|
for further information.
|
||||||
|
|
||||||
* `deleteExcluded` (optional)
|
* `deleteExcluded` (optional)
|
||||||
boolean that controls whether the excluded directories should be deleted
|
boolean that controls whether the excluded directories should be deleted
|
||||||
|
|
|
@ -84,6 +84,16 @@
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
exclude = lib.mkOption {
|
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;
|
type = lib.types.listOf lib.types.str;
|
||||||
default = [];
|
default = [];
|
||||||
example = [".git"];
|
example = [".git"];
|
||||||
|
|
Loading…
Reference in a new issue