dotfiles/modules/os/core/networking/i2p.nix

23 lines
365 B
Nix
Raw Normal View History

{ 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;
};
};
};
};
}