summary refs log tree commit diff
path: root/machines/graphite
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-02-12 02:37:09 +0100
committerMel <mel@rnrd.eu>2025-02-12 02:37:09 +0100
commit40d42c62a072e8075c26954dfeb2b34ad2bd762c (patch)
tree3266c7f229da4fd3a6ad96d377b0578dac1b082e /machines/graphite
parentdca859c210b23a006e23cab04eab05368ebe3605 (diff)
downloadminerals-40d42c62a072e8075c26954dfeb2b34ad2bd762c.tar.zst
minerals-40d42c62a072e8075c26954dfeb2b34ad2bd762c.zip
Replace graphite swapfile with zram-backed swap, for testing
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/graphite')
-rw-r--r--machines/graphite/devices.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/machines/graphite/devices.nix b/machines/graphite/devices.nix
index fe499e3..be777a9 100644
--- a/machines/graphite/devices.nix
+++ b/machines/graphite/devices.nix
@@ -16,11 +16,14 @@
     initrd.systemd.enable = true; 
   };
 
-  # swap
-  swapDevices = [{
-    device = "/var/swapfile";
-    size = 8 * 1024;
-  }];
+  # testing with replacing swap partitions and files
+  # and files in lieu of zram.
+  zramSwap = {
+    enable = true;
+    algorithm = "zstd";
+    swapDevices = 1;
+    memoryPercent = 50;
+  };
 
   # internet
   networking = {