fix(k8s/lib): fix mkSecretOption defaults

This commit is contained in:
Jaka Hudoklin 2019-03-01 09:53:38 +01:00
parent 1b32ca7bbd
commit 59691c6ea9
No known key found for this signature in database
GPG key ID: 6A08896BFD32BD95

View file

@ -4,7 +4,7 @@ with lib;
let let
k8s = { k8s = {
mkSecretOption = {description ? "", default ? {}}: mkOption { mkSecretOption = {description ? "", default ? null}: mkOption {
inherit description; inherit description;
type = types.nullOr (types.submodule { type = types.nullOr (types.submodule {
options = { options = {
@ -19,7 +19,7 @@ let
}; };
}; };
config = mkDefault default; config = mkDefault (if default == null then {} else default);
}); });
default = {}; default = {};
}; };