[General] Enable zram

This commit is contained in:
Antoine Viallon 2022-10-22 13:16:41 +02:00
parent d25c0db185
commit 69b13ee0ce
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -125,6 +125,13 @@ in
gcc.tune = cfg.cpuTune;
};
# zram is so usefull, we should always have it enabled.
zramSwap = {
enable = true;
priority = 10000;
memoryPercent = 100;
algorithm = "zstd";
};
nix.buildMachines = [
(mkBuildMachine {
hostName = "luke-skywalker-nixos.local";