From b7ac30197b87876f6ec81917fae19f307e187499 Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Tue, 16 May 2023 19:05:33 +0200 Subject: [PATCH] linux: enable zram writeback Zram needs CONFIG_ZRAM_WRITEBACK in order for writeback configuration to work. Since there is even a NixOS option (zramSwap.writebackDevice) for configuring writeback, it should be enabled. --- pkgs/os-specific/linux/kernel/common-config.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 3520f1bd5cfc..6b1a7d127a95 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -679,10 +679,11 @@ let }; zram = { - ZRAM = module; - ZSWAP = option yes; - ZBUD = option yes; - ZSMALLOC = module; + ZRAM = module; + ZRAM_WRITEBACK = option yes; + ZSWAP = option yes; + ZBUD = option yes; + ZSMALLOC = module; }; brcmfmac = {