1 { config, lib, pkgs, ... }:
6 cfg = config.services.i2p;
7 homeDir = "/var/lib/i2p";
10 options.services.i2p.enable = mkEnableOption (lib.mdDoc "I2P router");
13 config = mkIf cfg.enable {
16 description = "i2p User";
19 uid = config.ids.uids.i2p;
21 users.groups.i2p.gid = config.ids.gids.i2p;
22 systemd.services.i2p = {
23 description = "I2P router with administration interface for hidden services";
24 after = [ "network.target" ];
25 wantedBy = [ "multi-user.target" ];
28 WorkingDirectory = homeDir;
30 ExecStart = "${pkgs.i2p}/bin/i2prouter-plain";