diff options
Diffstat (limited to '4lib/krebs/types.nix')
-rw-r--r-- | 4lib/krebs/types.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/4lib/krebs/types.nix b/4lib/krebs/types.nix index 3d3d75a..92410dd 100644 --- a/4lib/krebs/types.nix +++ b/4lib/krebs/types.nix @@ -55,7 +55,7 @@ types // rec { type = listOf hostname; }; tinc = mkOption { - type = let net-config = config; in submodule ({ config, ... }: { + type = let net-config = config; in nullOr (submodule ({ config, ... }: { options = { config = mkOption { type = str; @@ -70,7 +70,8 @@ types // rec { type = str; }; }; - }); + })); + default = null; }; }; }); @@ -92,6 +93,10 @@ types // rec { pubkey = mkOption { type = str; }; + pubkeys = mkOption { + type = attrsOf str; + default = {}; + }; }; }; |