Configure zram swap with zstd and 50% memory limit
This commit is contained in:
parent
f646c091cc
commit
b6abc4a1cf
1 changed files with 5 additions and 1 deletions
|
|
@ -7,7 +7,11 @@
|
|||
services.logrotate.checkConfig = false;
|
||||
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
zramSwap.enable = true;
|
||||
zramSwap = {
|
||||
enable = true;
|
||||
memoryPercent = 50;
|
||||
algorithm = "zstd";
|
||||
};
|
||||
networking.hostName = "nixos";
|
||||
networking.domain = "";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue