git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #39155 from NixOS/zramSwap-one-dev

zramSwap: default to 1 device

commit54bcf06084254732e23104aed9636b011340b13e authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 23 Apr 2018, 08:44 (9 years ago) parentd52e5da8e3a145
1 file changed+4−4
nixos/modules/config/zram.nix+4−4
nixos/modules/config/zram.nix+4−4
@@ -25,16 +25,16 @@ in
2525 type = types.bool;
2626 description = ''
2727 Enable in-memory compressed swap space provided by the zram kernel
28− module. It is recommended to enable only for kernel 3.14 or higher.
28+ module.
29+ See https://www.kernel.org/doc/Documentation/blockdev/zram.txt
2930 '';
3031 };
3132
3233 numDevices = mkOption {
33− default = 4;
34+ default = 1;
3435 type = types.int;
3536 description = ''
36− Number of zram swap devices to create. It should be equal to the
37− number of CPU cores your system has.
37+ Number of zram swap devices to create.
3838 '';
3939 };
4040