summaryrefslogtreecommitdiff
path: root/os/srv/i2p.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2026-03-07 22:27:05 +0100
committeradikro <adikro@disroot.org>2026-03-07 22:27:05 +0100
commit11d05469368ecfe533c7720e7f5b624f2f8f19fc (patch)
treec666f76157b6f9158a2faa723efbf10d1d3dab03 /os/srv/i2p.nix
parentcacaadb79a73fca27bd8bbc0a33a0713d2379655 (diff)
...
Diffstat (limited to 'os/srv/i2p.nix')
-rw-r--r--os/srv/i2p.nix32
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;
+ };
+ };
+}