summary refs log tree commit diff
path: root/machines/fourmi/devices.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/fourmi/devices.nix')
-rw-r--r--machines/fourmi/devices.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/machines/fourmi/devices.nix b/machines/fourmi/devices.nix
index 61f6d1d..de872a7 100644
--- a/machines/fourmi/devices.nix
+++ b/machines/fourmi/devices.nix
@@ -21,6 +21,13 @@
     kernelModules = [ "wireguard" ];
   };
 
+  zramSwap = {
+    enable = true;
+    algorithm = "zstd";
+    swapDevices = 1;
+    memoryPercent = 100;
+  };
+
   # apply rpi4-specific device tree from nixos-hardware.
   hardware = {
     raspberry-pi."4".apply-overlays-dtmerge.enable = true;