diff --git a/common.nix b/common.nix index dd47cb7..1860e73 100644 --- a/common.nix +++ b/common.nix @@ -59,6 +59,14 @@ boot.initrd.verbose = false; ############################################################################# + # Compressed in-memory swap as a safety net during local build storms. + # Cheap when idle; without it a transient OOM during an uncached build + # can stall AdGuard/Jellyfin to the point of freezing the box. + zramSwap = { + enable = true; + memoryPercent = 50; + }; + # Use latest kernel boot.kernelPackages = pkgs.linuxPackages_latest; diff --git a/hosts/FredOS-Gaming.nix b/hosts/FredOS-Gaming.nix index 357ebd9..618b583 100644 --- a/hosts/FredOS-Gaming.nix +++ b/hosts/FredOS-Gaming.nix @@ -20,7 +20,7 @@ geary wowup-cf adwsteamgtk - proton-vpn + protonvpn-gui onlyoffice-desktopeditors vscodium ];