summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2015-08-09 02:24:58 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2015-08-09 02:29:35 +0200
commit2c5775b141372fc87da66c405dda473f4679f11c (patch)
tree814ad4d75847ce179cd4a47551e69f7a40570284 /nixos/modules
parent70ae60feb15f1ff12d6351a70ed2716ffba4943a (diff)
downloadnixlib-2c5775b141372fc87da66c405dda473f4679f11c.tar
nixlib-2c5775b141372fc87da66c405dda473f4679f11c.tar.gz
nixlib-2c5775b141372fc87da66c405dda473f4679f11c.tar.bz2
nixlib-2c5775b141372fc87da66c405dda473f4679f11c.tar.lz
nixlib-2c5775b141372fc87da66c405dda473f4679f11c.tar.xz
nixlib-2c5775b141372fc87da66c405dda473f4679f11c.tar.zst
nixlib-2c5775b141372fc87da66c405dda473f4679f11c.zip
i2p service: use mkEnableOption
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/networking/i2p.nix10
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 {