diff options
author | Wout Mertens <Wout.Mertens@gmail.com> | 2018-04-19 16:44:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-19 16:44:08 +0200 |
commit | dd5e2a08fbb0ea321885c7e36b3c072bf3d2aef7 (patch) | |
tree | 7d7e0b3f96e666e504d901d62d7321f7caa86e1a /nixos/modules/config/zram.nix | |
parent | e821f40c26b4477a2dba682d2b465654c9667ed1 (diff) | |
download | nixlib-dd5e2a08fbb0ea321885c7e36b3c072bf3d2aef7.tar nixlib-dd5e2a08fbb0ea321885c7e36b3c072bf3d2aef7.tar.gz nixlib-dd5e2a08fbb0ea321885c7e36b3c072bf3d2aef7.tar.bz2 nixlib-dd5e2a08fbb0ea321885c7e36b3c072bf3d2aef7.tar.lz nixlib-dd5e2a08fbb0ea321885c7e36b3c072bf3d2aef7.tar.xz nixlib-dd5e2a08fbb0ea321885c7e36b3c072bf3d2aef7.tar.zst nixlib-dd5e2a08fbb0ea321885c7e36b3c072bf3d2aef7.zip |
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.nix | 5 |
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. ''; }; |