diff options
author | tv <tv@krebsco.de> | 2018-12-11 19:50:50 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-12-11 19:50:50 +0100 |
commit | 8b08b3528d2828e03d8b8ca2545853934d3cf5be (patch) | |
tree | 95744ba24b25726ee26e7c9a085a2f0b5636bc12 /lib/types.nix | |
parent | 39fee0d617e393e35a73a69fe69564f3bfa86209 (diff) | |
parent | 5f354c6209c26c981dbe61326ad776e5c387be0e (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lib/types.nix')
-rw-r--r-- | lib/types.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/types.nix b/lib/types.nix index 41e7515..17c1688 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -192,6 +192,28 @@ rec { })); default = null; }; + wireguard = mkOption { + type = nullOr (submodule ({ config, ... }: { + options = { + port = mkOption { + type = int; + description = "tinc port to use to connect to host"; + default = 51820; + }; + pubkey = mkOption { + type = wireguard-pubkey; + }; + subnets = mkOption { + type = listOf cidr; + description = '' + wireguard subnets, + this defines how routing behaves for hosts that can't reach each other. + ''; + default = []; + }; + }; + })); + }; }; }); @@ -548,4 +570,6 @@ rec { check = filename.check; merge = mergeOneOption; }; + + wireguard-pubkey = str; } |