From a35cebb3b1789797e4e0102bc8da9d694b55abef Mon Sep 17 00:00:00 2001 From: Matej Cotman Date: Mon, 14 Sep 2015 02:21:10 +0200 Subject: [PATCH] xtreemfs: use mkEnableOption instead of mkOption --- .../services/network-filesystems/xtreemfs.nix | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/nixos/modules/services/network-filesystems/xtreemfs.nix b/nixos/modules/services/network-filesystems/xtreemfs.nix index 215b76bb470..2d57464ce04 100644 --- a/nixos/modules/services/network-filesystems/xtreemfs.nix +++ b/nixos/modules/services/network-filesystems/xtreemfs.nix @@ -82,12 +82,7 @@ in services.xtreemfs = { - enable = mkOption { - default = false; - description = '' - Whether to enable XtreemFS. - ''; - }; + enable = mkEnableOption "XtreemFS"; homeDir = mkOption { default = "/var/lib/xtreemfs"; @@ -169,12 +164,7 @@ in ''; }; replication = { - enable = mkOption { - default = false; - description = '' - Whether to enable XtreemFS DIR replication plugin. - ''; - }; + enable = mkEnableOption "XtreemFS DIR replication plugin"; extraConfig = mkOption { example = '' # participants of the replication including this replica @@ -308,12 +298,7 @@ in ''; }; replication = { - enable = mkOption { - default = false; - description = '' - Whether to enable XtreemFS MRC replication plugin. - ''; - }; + enable = mkEnableOption "XtreemFS MRC replication plugin"; extraConfig = mkOption { example = '' # participants of the replication including this replica