diff options
-rw-r--r-- | common.nix | 2 | ||||
-rw-r--r-- | machines/dnyarri-kconf.nix | 2 | ||||
-rw-r--r-- | machines/mmrnmhrm-kconf.nix | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/common.nix b/common.nix index 9e2157a8..91e51602 100644 --- a/common.nix +++ b/common.nix @@ -21,6 +21,8 @@ enable = true; version = 2; }; + + kernelParams = [ "zswap.enabled=1" ]; }; hardware = { diff --git a/machines/dnyarri-kconf.nix b/machines/dnyarri-kconf.nix index f98941c9..737d2b2d 100644 --- a/machines/dnyarri-kconf.nix +++ b/machines/dnyarri-kconf.nix @@ -303,6 +303,8 @@ "CONFIG_CROSS_MEMORY_ATTACH" = "y"; "CONFIG_CLEANCACHE" = "y"; "CONFIG_FRONTSWAP" = "y"; + "CONFIG_ZBUD" = "y"; + "CONFIG_ZSWAP" = "y"; "CONFIG_ZSMALLOC" = "y"; "CONFIG_X86_RESERVE_LOW" = "64"; "CONFIG_MTRR" = "y"; diff --git a/machines/mmrnmhrm-kconf.nix b/machines/mmrnmhrm-kconf.nix index f6c6d62b..5a845135 100644 --- a/machines/mmrnmhrm-kconf.nix +++ b/machines/mmrnmhrm-kconf.nix @@ -304,6 +304,8 @@ "CONFIG_CROSS_MEMORY_ATTACH" = "y"; "CONFIG_CLEANCACHE" = "y"; "CONFIG_FRONTSWAP" = "y"; + "CONFIG_ZBUD" = "y"; + "CONFIG_ZSWAP" = "y"; "CONFIG_ZSMALLOC" = "y"; "CONFIG_X86_RESERVE_LOW" = "64"; "CONFIG_MTRR" = "y"; |