From ef025e29984d8be59d1295829352d5653042cff6 Mon Sep 17 00:00:00 2001 From: Evgeny Kurnevsky Date: Sun, 6 Feb 2022 14:24:37 +0300 Subject: i2pd: add yggdrasil settings --- nixos/modules/services/networking/i2pd.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nixos/modules/services/networking/i2pd.nix b/nixos/modules/services/networking/i2pd.nix index 34fda57b23d..06f3420b8ff 100644 --- a/nixos/modules/services/networking/i2pd.nix +++ b/nixos/modules/services/networking/i2pd.nix @@ -158,6 +158,10 @@ let (sec "addressbook") (strOpt "defaulturl" cfg.addressbook.defaulturl) ] ++ (optionalEmptyList "subscriptions" cfg.addressbook.subscriptions) + ++ [ + (sec "meshnets") + (boolOpt "yggdrasil" cfg.yggdrasil.enable) + ] ++ (optionalNullString "yggaddress" cfg.yggdrasil.address) ++ (flip map (collect (proto: proto ? port && proto ? address) cfg.proto) (proto: let protoOpts = [ @@ -546,6 +550,17 @@ in ''; }; + yggdrasil.enable = mkEnableOption "Yggdrasil"; + + yggdrasil.address = mkOption { + type = with types; nullOr str; + default = null; + description = '' + Your local yggdrasil address. Specify it if you want to bind your router to a + particular address. + ''; + }; + proto.http = (mkEndpointOpt "http" "127.0.0.1" 7070) // { auth = mkEnableOption "Webconsole authentication"; -- cgit 1.4.1