From d6e73178cdaf44746bcbfb8c78e8c99f8821a234 Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 12 Feb 2025 02:28:26 +0100 Subject: Replace lapin swap partition with zram, for testing Signed-off-by: Mel --- machines/lapin/devices.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'machines/lapin/devices.nix') diff --git a/machines/lapin/devices.nix b/machines/lapin/devices.nix index 4fc9610..ccf7d75 100644 --- a/machines/lapin/devices.nix +++ b/machines/lapin/devices.nix @@ -6,6 +6,15 @@ kernelModules = [ "wireguard" ]; }; + # testing with replacing swap partitions + # and files in lieu of zram. + zramSwap = { + enable = true; + algorithm = "zstd"; + swapDevices = 1; + memoryPercent = 50; + }; + networking = { # Network configuration is managed with networkd. useDHCP = false; -- cgit 1.4.1