23 lines
365 B
Nix
23 lines
365 B
Nix
|
{ config, lib, ... }:
|
||
|
|
||
|
let
|
||
|
cfg = config.my.networking.i2p;
|
||
|
in {
|
||
|
options.my.networking.i2p = {
|
||
|
enable = lib.mkEnableOption null;
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
services.i2pd = {
|
||
|
enable = true;
|
||
|
enableIPv4 = true;
|
||
|
enableIPv6 = true;
|
||
|
proto = {
|
||
|
httpProxy = {
|
||
|
enable = true;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|