diff options
Diffstat (limited to 'os/srv/i2p.nix')
| -rw-r--r-- | os/srv/i2p.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/os/srv/i2p.nix b/os/srv/i2p.nix new file mode 100644 index 0000000..8850795 --- /dev/null +++ b/os/srv/i2p.nix @@ -0,0 +1,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; + }; + }; +} |
