diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-13 13:05:40 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-02-13 13:05:40 +0100 |
commit | ea9c6fe8041faab128391a0c03ec3bde25e29fa3 (patch) | |
tree | 065d038b07b39c031139830378f3d55224096648 /modules/private/environment.nix | |
parent | 8a304ef46e1ad221253f883a8a296a12018e3d30 (diff) | |
download | Nix-ea9c6fe8041faab128391a0c03ec3bde25e29fa3.tar.gz Nix-ea9c6fe8041faab128391a0c03ec3bde25e29fa3.tar.zst Nix-ea9c6fe8041faab128391a0c03ec3bde25e29fa3.zip |
Add Tinc VPN
Diffstat (limited to 'modules/private/environment.nix')
-rw-r--r-- | modules/private/environment.nix | 10 |
1 files changed, 10 insertions, 0 deletions
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 | |||
536 | }; | 536 | }; |
537 | }; | 537 | }; |
538 | }; | 538 | }; |
539 | vpn = mkOption { | ||
540 | description = "VPN configuration"; | ||
541 | type = attrsOf (submodule { | ||
542 | options = { | ||
543 | prefix = mkOption { type = str; description = "ipv6 prefix for the vpn subnet"; }; | ||
544 | privateKey = mkOption { type = str; description = "Private key for the host"; }; | ||
545 | publicKey = mkOption { type = str; description = "Public key for the host"; }; | ||
546 | }; | ||
547 | }); | ||
548 | }; | ||
539 | mail = mkOption { | 549 | mail = mkOption { |
540 | description = "Mail configuration"; | 550 | description = "Mail configuration"; |
541 | type = submodule { | 551 | type = submodule { |