diff options
author | tv <tv@krebsco.de> | 2018-11-28 08:34:19 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-11-28 12:45:21 +0100 |
commit | 6f49342b2d5973478f1f5eb6f8d6307059e7bcf7 (patch) | |
tree | 1407762405a66c4f5a0d363a98d7874f769bccad /lib | |
parent | d92cc88a3ccfb378d045b35032ee3c0a4f5f860f (diff) |
populate file: add useChecksumv1.8.0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/default.nix | 1 | ||||
-rw-r--r-- | lib/types/populate.nix | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix index cf57316..48e005e 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -16,6 +16,7 @@ let { }; }; sanitize = x: lib.getAttr (lib.typeOf x) { + bool = x; list = map sanitize x; set = lib.mapAttrs (lib.const sanitize) diff --git a/lib/types/populate.nix b/lib/types/populate.nix index f35786d..2cd3267 100644 --- a/lib/types/populate.nix +++ b/lib/types/populate.nix @@ -52,6 +52,10 @@ path = lib.mkOption { type = lib.types.absolute-pathname; }; + useChecksum = lib.mkOption { + default = false; + type = lib.types.bool; + }; }; }; git = lib.types.submodule { |