From fd9604b319b66df9a47d639ecac0e5631ac3358a Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
Date: Wed, 13 Jun 2012 03:28:03 +0000
Subject: [PATCH] * Oops, fix an incomplete commit.

svn path=/nixos/trunk/; revision=34488
---
 modules/config/swap.nix | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/modules/config/swap.nix b/modules/config/swap.nix
index f0a6ceeda81c..163de568d0f7 100644
--- a/modules/config/swap.nix
+++ b/modules/config/swap.nix
@@ -47,10 +47,13 @@ with pkgs.lib;
 
           size = mkOption {
             default = null;
-            example = "swap";
+            example = 2048;
             type = types.nullOr types.int;
             description = ''
-              Label of the device.  Can be used instead of <varname>device</varname>.
+              If this option is set, ‘device’ is interpreted as the
+              path of a swapfile that will be created automatically
+              with the indicated size (in megabytes) if it doesn't
+              exist.
             '';
           };