summary refs log tree commit diff
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-02-12 02:28:26 +0100
committerMel <mel@rnrd.eu>2025-02-12 02:28:26 +0100
commitd6e73178cdaf44746bcbfb8c78e8c99f8821a234 (patch)
tree97397f748f766b6cb6ebcdfd3ebeab7d8affaac4
parent86042b26129e86db763d021518b1838e86d6ab02 (diff)
downloadnetwork-d6e73178cdaf44746bcbfb8c78e8c99f8821a234.tar.zst
network-d6e73178cdaf44746bcbfb8c78e8c99f8821a234.zip
Replace lapin swap partition with zram, for testing
Signed-off-by: Mel <mel@rnrd.eu>
-rw-r--r--machines/lapin/devices.nix9
-rw-r--r--machines/lapin/hardware.nix4
2 files changed, 10 insertions, 3 deletions
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;
diff --git a/machines/lapin/hardware.nix b/machines/lapin/hardware.nix
index b33eb26..08cf82e 100644
--- a/machines/lapin/hardware.nix
+++ b/machines/lapin/hardware.nix
@@ -23,9 +23,7 @@
       fsType = "vfat";
     };
 
-  swapDevices =
-    [ { device = "/dev/disk/by-uuid/15e0485e-dff2-4eb5-9a4d-12c69baa3db1"; }
-    ];
+  swapDevices = [ ];
 
   # Enables DHCP on each ethernet and wireless interface. In case of scripted networking
   # (the default) this is the recommended approach. When using systemd-networkd it's