mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Merge pull request #158346 from kurnevsky/i2pd-yggdrasil
i2pd: add yggdrasil settings
This commit is contained in:
commit
6d1cabe9d9
1 changed files with 15 additions and 0 deletions
|
@ -158,6 +158,10 @@ let
|
||||||
(sec "addressbook")
|
(sec "addressbook")
|
||||||
(strOpt "defaulturl" cfg.addressbook.defaulturl)
|
(strOpt "defaulturl" cfg.addressbook.defaulturl)
|
||||||
] ++ (optionalEmptyList "subscriptions" cfg.addressbook.subscriptions)
|
] ++ (optionalEmptyList "subscriptions" cfg.addressbook.subscriptions)
|
||||||
|
++ [
|
||||||
|
(sec "meshnets")
|
||||||
|
(boolOpt "yggdrasil" cfg.yggdrasil.enable)
|
||||||
|
] ++ (optionalNullString "yggaddress" cfg.yggdrasil.address)
|
||||||
++ (flip map
|
++ (flip map
|
||||||
(collect (proto: proto ? port && proto ? address) cfg.proto)
|
(collect (proto: proto ? port && proto ? address) cfg.proto)
|
||||||
(proto: let protoOpts = [
|
(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) // {
|
proto.http = (mkEndpointOpt "http" "127.0.0.1" 7070) // {
|
||||||
|
|
||||||
auth = mkEnableOption "Webconsole authentication";
|
auth = mkEnableOption "Webconsole authentication";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue