5a4d076d84
Note: not the actual initial commit. I swear I will stop repeatedly force pushing to this single commit eventually ok.
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;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|