From 352b87192d95199c814c84b9177e7210f342565f Mon Sep 17 00:00:00 2001 From: naps62 Date: Mon, 17 Aug 2026 08:12:48 +0000 Subject: [PATCH] fix: disable zram on yolo, use aoe-with-web zram wedged shutdown faulting stored pages back in, and the VM already has a real swap partition. aoe-with-web is the same binary plus `serve`. Co-Authored-By: Claude Opus 5 --- home/common/programs/aoe/default.nix | 4 +++- hosts/yolo/default.nix | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/home/common/programs/aoe/default.nix b/home/common/programs/aoe/default.nix index f981f54..8ea9bde 100644 --- a/home/common/programs/aoe/default.nix +++ b/home/common/programs/aoe/default.nix @@ -6,7 +6,9 @@ # Agent of Empires: the agent session manager. Import this on any host that # wants it — it brings both the package and the shared settings. { - home.packages = [ inputs.agent-of-empires.packages.${pkgs.system}.default ]; + # aoe-with-web, not default: same single `aoe` binary plus the `serve` + # subcommand (web dashboard). The default build has no `serve` at all. + home.packages = [ inputs.agent-of-empires.packages.${pkgs.system}.aoe-with-web ]; # mutableFiles, not xdg.configFile: aoe rewrites this file itself (it keeps # .bak- copies), so a read-only store symlink would break it. The copy diff --git a/hosts/yolo/default.nix b/hosts/yolo/default.nix index 6d67ac9..2f68049 100644 --- a/hosts/yolo/default.nix +++ b/hosts/yolo/default.nix @@ -26,6 +26,11 @@ # virtio drivers; the agent itself is a separate service. services.qemuGuest.enable = true; + # Hung shutdown waiting on systemd-zram-setup@zram0: deactivating zram swap + # has to fault every stored page back into RAM first. Redundant here anyway — + # this VM has a real 8G swap partition, and the host manages its own memory. + zramSwap.enable = lib.mkForce false; + # The only out-of-band way in. `vga: virtio-gl` renders through a GL context # with no QEMU console surface, so noVNC and screendump both go dark; this # pairs with the VM's serial0 socket to keep `qm terminal` working. Listed