summaryrefslogtreecommitdiff
path: root/machines/graphite
diff options
context:
space:
mode:
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 = {