summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-02-13 20:41:21 +0100
committerMel <mel@rnrd.eu>2025-02-13 20:41:21 +0100
commit839b82dae43324782166b16b624e34a8c7fe4104 (patch)
tree5a73bec4ed86ccbb80124281bb523760e91e97ef
parent99d0549197733e83eec317c40d22389a91b8ea8b (diff)
downloadminerals-839b82dae43324782166b16b624e34a8c7fe4104.tar.zst
minerals-839b82dae43324782166b16b624e34a8c7fe4104.zip
Use zram for bismuth too (not that it needs it :3)
Signed-off-by: Mel <mel@rnrd.eu>
-rw-r--r--machines/bismuth/devices.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/machines/bismuth/devices.nix b/machines/bismuth/devices.nix
index ff28761..cf17a89 100644
--- a/machines/bismuth/devices.nix
+++ b/machines/bismuth/devices.nix
@@ -21,11 +21,14 @@
];
};
- # 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 = 25; # 50% would just be too big for bismuth.
+ };
# internet
networking.networkmanager.enable = true;