summaryrefslogtreecommitdiffstats
path: root/4lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-07-27 02:45:03 +0200
committertv <tv@krebsco.de>2015-07-27 02:51:15 +0200
commit4d87f34e3eb0f8dfe95cee93599380e1b451f2e1 (patch)
tree47d63bab1dcb87567894d9f416d1cf755d5dbdf5 /4lib
parent3f9bdb3821d9a24670e71a41d6289585b5289ef5 (diff)
krebs.types.net.tinc: add default
Diffstat (limited to '4lib')
-rw-r--r--4lib/krebs/types.nix5
1 files changed, 3 insertions, 2 deletions
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;
};
};
});