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 | 172a746c3a4735f1f7875f7169b53e8b3df82269 (patch) | |
tree | ee5e0d2e093f446d0f23d1abe599e85766928c12 /lib/types.nix | |
parent | 761ce9cefdb2c04132f44c2b41fac6d49a472752 (diff) | |
parent | 30772247c0e629d443fb62bc566f3651be1157c1 (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 41e75154e..17c1688fa 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; } |