i2p service: use mkEnableOption

Changed files
+1 -9
nixos
modules
services
networking
+1 -9
nixos/modules/services/networking/i2p.nix
···
homeDir = "/var/lib/i2p";
in {
###### interface
-
options.services.i2p = {
-
enable = mkOption {
-
type = types.bool;
-
default = false;
-
description = ''
-
Enables i2p as a running service upon activation.
-
'';
-
};
-
};
###### implementation
config = mkIf cfg.enable {
···
homeDir = "/var/lib/i2p";
in {
###### interface
+
options.services.i2p.enable = mkEnableOption "I2P router";
###### implementation
config = mkIf cfg.enable {