i2p service: use mkEnableOption
This commit is contained in:
parent
70ae60feb1
commit
2c5775b141
|
@ -7,15 +7,7 @@ let
|
||||||
homeDir = "/var/lib/i2p";
|
homeDir = "/var/lib/i2p";
|
||||||
in {
|
in {
|
||||||
###### interface
|
###### interface
|
||||||
options.services.i2p = {
|
options.services.i2p.enable = mkEnableOption "I2P router";
|
||||||
enable = mkOption {
|
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
Enables i2p as a running service upon activation.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
###### implementation
|
###### implementation
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user