mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
Merge pull request #2378 from wizeman/u/kernel-zram
linux: Add support for zram
This commit is contained in:
commit
f9c05a3bad
@ -323,6 +323,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 New Issue
Block a user