about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2024-04-13 15:08:19 +0300
committerGitHub <noreply@github.com>2024-04-13 15:08:19 +0300
commit02214bedf5f3fad8379f64920870565b6f23f8af (patch)
tree10eb7d429bcee1299d80c1fbac19c1390b8aeac4 /pkgs/os-specific
parent764d49ffeab46a7d7abb27b27160d56c34fa754c (diff)
parent92d4fc3a4ce2a3019300d6727eaac69c07931a63 (diff)
Merge pull request #303821 from K900/enable-zram-multi-comp
linux/common-config: enable ZRAM_MULTI_COMP where available
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix11
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 22245bc51fbb2..0f1b314df6bd5 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -871,11 +871,12 @@ let
     };
 
     zram = {
-      ZRAM           = module;
-      ZRAM_WRITEBACK = option yes;
-      ZSWAP          = option yes;
-      ZPOOL          = yes;
-      ZBUD           = option yes;
+      ZRAM            = module;
+      ZRAM_WRITEBACK  = option yes;
+      ZRAM_MULTI_COMP = whenAtLeast "6.2" yes;
+      ZSWAP           = option yes;
+      ZPOOL           = yes;
+      ZBUD            = option yes;
     };
 
     brcmfmac = {