Nix configurations for my personal machines (Linux & macOS)
1{delib, ...}: 2delib.module { 3 name = "memory"; 4 5 nixos.always = { 6 services.earlyoom.enable = true; 7 services.earlyoom.enableNotifications = true; 8 zramSwap.enable = true; 9 zramSwap.algorithm = "zstd"; 10 }; 11}