diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-08-09 02:24:58 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-08-09 02:29:35 +0200 |
commit | 2c5775b141372fc87da66c405dda473f4679f11c (patch) | |
tree | 814ad4d75847ce179cd4a47551e69f7a40570284 /nixos/modules/services/networking/i2p.nix | |
parent | 70ae60feb15f1ff12d6351a70ed2716ffba4943a (diff) |
i2p service: use mkEnableOption
Diffstat (limited to 'nixos/modules/services/networking/i2p.nix')
-rw-r--r-- | nixos/modules/services/networking/i2p.nix | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/nixos/modules/services/networking/i2p.nix b/nixos/modules/services/networking/i2p.nix index bad22c791388..e6ee5fd1f957 100644 --- a/nixos/modules/services/networking/i2p.nix +++ b/nixos/modules/services/networking/i2p.nix @@ -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 { |