summaryrefslogtreecommitdiffstats
path: root/lib/types
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2019-12-22 13:07:51 +0000
committerLassulus <github@lassul.us>2019-12-23 21:18:35 +0100
commitfff9b24ec98515cdd19cb3d6490b6214bacae792 (patch)
tree93f9ffe1d0e3dc8fddc5cf6546ae490ba4a79102 /lib/types
parentf2f8cbf1afcb2c26d11e5f82c0b523b2cb10205c (diff)
populate file: add exclude option
Diffstat (limited to 'lib/types')
-rw-r--r--lib/types/populate.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/types/populate.nix b/lib/types/populate.nix
index bf90ace..e23ddb0 100644
--- a/lib/types/populate.nix
+++ b/lib/types/populate.nix
@@ -71,6 +71,11 @@
default = false;
type = lib.types.bool;
};
+ exclude = lib.mkOption {
+ type = lib.types.listOf lib.types.str;
+ default = [];
+ example = [".git"];
+ };
};
};
git = lib.types.submodule {