Add zswap

This commit is contained in:
2026-05-03 03:14:33 -05:00
parent 344872a373
commit 4f1bb4326e
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@
./hosts/laptop-nixos-1/configuration.nix
./hosts/laptop-nixos-1/hardware-configuration.nix
./swap/16G.nix
./swap/zswap.nix
];
};
};
+8
View File
@@ -0,0 +1,8 @@
{
boot.kernelParams = [
"zswap.enabled=1"
"zswap.compressor=zstd"
"zswap.zpool=zsmalloc"
"zswap.max_poool_percent=30"
]
}