From ea9c6fe8041faab128391a0c03ec3bde25e29fa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 13 Feb 2020 13:05:40 +0100 Subject: Add Tinc VPN --- modules/private/environment.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/private/environment.nix') diff --git a/modules/private/environment.nix b/modules/private/environment.nix index 3b51f37..2cecc6d 100644 --- a/modules/private/environment.nix +++ b/modules/private/environment.nix @@ -536,6 +536,16 @@ in }; }; }; + vpn = mkOption { + description = "VPN configuration"; + type = attrsOf (submodule { + options = { + prefix = mkOption { type = str; description = "ipv6 prefix for the vpn subnet"; }; + privateKey = mkOption { type = str; description = "Private key for the host"; }; + publicKey = mkOption { type = str; description = "Public key for the host"; }; + }; + }); + }; mail = mkOption { description = "Mail configuration"; type = submodule { -- cgit v1.2.3