From c1094e7352f6107867e5a24d318b6f8e895b18f2 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Fri, 1 May 2026 13:38:27 +0100 Subject: [PATCH] Fix proton-vpn rename on Gaming, restore zramSwap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 25.11 channel renamed proton-vpn to protonvpn-gui; Macbook was patched in an earlier commit but Gaming wasn't, breaking the build. zramSwap goes back into common.nix as the cheap OOM-during-uncached-build safety net — even on stable, --refresh against a freshly-bumped lock can trigger local builds the box has no swap to absorb. Co-Authored-By: Claude Opus 4.7 --- common.nix | 8 ++++++++ hosts/FredOS-Gaming.nix | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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 ];