bigbox1 (Ryzen 5 4600G, B550 GAMING X V2, BIOS FC) hard-froze 5 times
in 16 days (Nov 4 19:07, Nov 16 01:22, Nov 17 02:03, Nov 17 22:59,
Nov 19 18:20 ET), always while idle, each time with no log line and an
"uncleanly shut down" journal on the next boot. That matches the known
Ryzen deep-idle (C6) freeze.
acpi_idle exposes C1 (MWAIT), C2 and C3 (lat 350us, the deep state);
processor.max_cstate=1 keeps cores out of C2/C3. Cost: a few watts
more at idle.
The runtime watchdog (common.dns, SP5100 TCO, 30s) was armed during the
Nov 19 boot and did not reset the box, so it is not a safety net here
and is left as is.
Add hardened systemd-resolved DNS with boot verification and journal recovery,
enabled only on specific hosts:
- hl-bigbox1, hl-bigbox2 (experienced DNS resilience issues)
- hl-minipc1, hl-minipc2, hl-minipc3 (minipc cluster)
- hl-fwdesk, hl-fws1 (desktop/workstation nodes)
Changes:
1. New module: modules/nixos/common/dns/default.nix
- systemd-resolved with LLMNR fallback and DNSSEC tolerance
- Hardened journald with persistent storage and auto-recovery
- Boot-time DNS verification service with 5 retries
- Systemd watchdog for automatic reboot on DNS failure
2. Default to false, enabled explicitly on target hosts only
3. Updated host configs to enable dns resilience module
- Extend pkgs/llama-cpp to support CUDA backend (backend="cuda") for NVIDIA GPUs
- Add llama-cpp-cuda variant to modules/core/default.nix overlay
- Create hosts/hl-bigbox1/services/llama-cpp.nix with RTX 3060 tuning:
* gpuLayers=30 (conserve 12GB VRAM for context)
* parallel=2 (handle concurrent requests on smaller VRAM)
* Same Qwen3.8-27B + DFlash2 drafter as fwdesk
- Wire service into bigbox1 services/default.nix
- Disabled by default (weights download manual)