From b4c2b9135c73ff5a78af9651c32bbf0d98bacdac Mon Sep 17 00:00:00 2001 From: Jakob Lechner Date: Fri, 17 Feb 2023 18:18:51 +0000 Subject: [PATCH] Enable zram on aluminium --- hosts/aluminium/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/aluminium/configuration.nix b/hosts/aluminium/configuration.nix index 9373bde..8b545ef 100644 --- a/hosts/aluminium/configuration.nix +++ b/hosts/aluminium/configuration.nix @@ -101,6 +101,14 @@ }; }; + zramSwap = { + enable = true; + algorithm = "zstd"; + memoryPercent = 60; + numDevices = 1; + priority = 1; + }; + # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions # on your system were taken. It‘s perfectly fine and recommended to leave