From 4d87f34e3eb0f8dfe95cee93599380e1b451f2e1 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 27 Jul 2015 02:45:03 +0200 Subject: krebs.types.net.tinc: add default --- 4lib/krebs/types.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '4lib/krebs') diff --git a/4lib/krebs/types.nix b/4lib/krebs/types.nix index 3d3d75a..970ef2f 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; }; }; }); -- cgit v1.2.3