From 9c16ab1ce11eb2c16af97e1b293961178a9f1b7b Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 17 Mar 2020 19:32:46 +0100 Subject: populate file: deprecated exclude option --- lib/types/populate.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/types/populate.nix') diff --git a/lib/types/populate.nix b/lib/types/populate.nix index 0427dbd..4ac9b1f 100644 --- a/lib/types/populate.nix +++ b/lib/types/populate.nix @@ -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"]; -- cgit v1.2.3