summaryrefslogtreecommitdiffstats
path: root/nixos/modules/config/zram.nix
diff options
context:
space:
mode:
authorWout Mertens <Wout.Mertens@gmail.com>2018-04-19 16:44:08 +0200
committerGitHub <noreply@github.com>2018-04-19 16:44:08 +0200
commitdd5e2a08fbb0ea321885c7e36b3c072bf3d2aef7 (patch)
tree7d7e0b3f96e666e504d901d62d7321f7caa86e1a /nixos/modules/config/zram.nix
parente821f40c26b4477a2dba682d2b465654c9667ed1 (diff)
zramSwap: default to 1 device
One device per cpu is only needed for kernel 3.14
Diffstat (limited to 'nixos/modules/config/zram.nix')
-rw-r--r--nixos/modules/config/zram.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/config/zram.nix b/nixos/modules/config/zram.nix
index ae1b0a6c8e11..b8adb51765f6 100644
--- a/nixos/modules/config/zram.nix
+++ b/nixos/modules/config/zram.nix
@@ -26,15 +26,16 @@ in
description = ''
Enable in-memory compressed swap space provided by the zram kernel
module. It is recommended to enable only for kernel 3.14 or higher.
+ See https://www.kernel.org/doc/Documentation/blockdev/zram.txt
'';
};
numDevices = mkOption {
- default = 4;
+ default = 1;
type = types.int;
description = ''
Number of zram swap devices to create. It should be equal to the
- number of CPU cores your system has.
+ number of CPU cores your system has for kernel < v3.15.
'';
};