mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-19 15:31:22 +02:00
feat: enable zram
This commit is contained in:
@@ -28,7 +28,8 @@
|
|||||||
nix.settings.auto-optimise-store = true;
|
nix.settings.auto-optimise-store = true;
|
||||||
|
|
||||||
# Enable in-memory compressed devices and swap space provided by the zram kernel module.
|
# Enable in-memory compressed devices and swap space provided by the zram kernel module.
|
||||||
# By enable this, we can store more data in memory instead of fallback to disk-based swap devices directly, and thus improve I/O performance.
|
# By enable this, we can store more data in memory instead of fallback to disk-based swap devices directly,
|
||||||
|
# and thus improve I/O performance when we have a lot of memory.
|
||||||
zramSwap = {
|
zramSwap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# one of "lzo", "lz4", "zstd"
|
# one of "lzo", "lz4", "zstd"
|
||||||
|
|||||||
Reference in New Issue
Block a user