blob: 8850795f530d35027ff9a738905f37a2b27e7cad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{
config,
lib,
...
}:
let
cfg = config.os.srv.i2p;
in
{
options.os.srv.i2p.enable = lib.mkEnableOption "enables i2pd";
config = lib.mkIf cfg.enable {
services.i2pd = {
enable = true;
upnp.enable = true;
bandwidth = 1024;
ssu2 = {
enable = true;
# published = true;
};
reseed.verify = true;
# proto = {
# socksProxy = {
# enable = true;
# port = 4445;
# };
# i2pControl.enable = true;
# };
yggdrasil.enable = true;
};
};
}
|