forked from mirrors/nixpkgs
linux: Add support for zram
This commit is contained in:
parent
23297b0edd
commit
f0e3775f2e
|
@ -317,6 +317,12 @@ with stdenv.lib;
|
|||
TRANSPARENT_HUGEPAGE_ALWAYS? n
|
||||
TRANSPARENT_HUGEPAGE_MADVISE? y
|
||||
|
||||
# zram support (e.g for in-memory compressed swap)
|
||||
${optionalString (versionAtLeast version "3.4") ''
|
||||
ZSMALLOC y
|
||||
''}
|
||||
ZRAM m
|
||||
|
||||
${kernelPlatform.kernelExtraConfig or ""}
|
||||
${extraConfig}
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue