aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix1
-rw-r--r--lib/types/populate.nix6
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 3ebefdc..cf57316 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -16,6 +16,7 @@ let {
};
};
sanitize = x: lib.getAttr (lib.typeOf x) {
+ list = map sanitize x;
set = lib.mapAttrs
(lib.const sanitize)
(lib.filterAttrs
diff --git a/lib/types/populate.nix b/lib/types/populate.nix
index 3b13df0..f35786d 100644
--- a/lib/types/populate.nix
+++ b/lib/types/populate.nix
@@ -56,6 +56,12 @@
};
git = lib.types.submodule {
options = {
+ clean = {
+ exclude = lib.mkOption {
+ default = [];
+ type = lib.types.listOf lib.types.str;
+ };
+ };
ref = lib.mkOption {
type = lib.types.str; # TODO lib.types.git.ref
};