i2p service: use mkEnableOption

This commit is contained in:
Joachim Fasting 2015-08-09 02:24:58 +02:00
parent 70ae60feb1
commit 2c5775b141

View File

@ -7,15 +7,7 @@ let
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.
'';
};
};
options.services.i2p.enable = mkEnableOption "I2P router";
###### implementation
config = mkIf cfg.enable {