mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
i2p service: use mkEnableOption
This commit is contained in:
parent
70ae60feb1
commit
2c5775b141
1 changed files with 1 additions and 9 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue