8 cfg = config.services.i2p;
9 homeDir = "/var/lib/i2p";
13 options.services.i2p.enable = lib.mkEnableOption "I2P router";
16 config = lib.mkIf cfg.enable {
19 description = "i2p User";
22 uid = config.ids.uids.i2p;
24 users.groups.i2p.gid = config.ids.gids.i2p;
25 systemd.services.i2p = {
26 description = "I2P router with administration interface for hidden services";
27 after = [ "network.target" ];
28 wantedBy = [ "multi-user.target" ];
31 WorkingDirectory = homeDir;
33 ExecStart = "${pkgs.i2p}/bin/i2prouter";