Files
nix-config/hosts/idols-ai
ryan4yin | 二花 63b7183381 feat(mihomo): keep unproxiable ranges out of TUN, fix the startup DNS race (#419)
* feat(mihomo): keep ranges that can never be proxied out of TUN

The list lives in policy.yaml as tun_exclude_address; sources.yaml may override
it. 198.18.0.0/15 stays in TUN: that is the fake-ip range itself.

* feat(mihomo): match Valve's content servers by ASN

The 20 hand-copied prefixes had drifted from what AS32590 announces. The rule
type needs GeoLite2-ASN.mmdb, so geox-url.asn points at the same mirror.

* feat(mihomo): render the gateway config from the same sources

The hand-kept copy had drifted: a manual sync carried the desktop's secret onto
the gateway and dropped external-ui-url. --redact yields a shareable template.

* fix(mihomo): open the link DNS takeover only once the core serves it

The core opens :1053 after parsing rules, and rule parsing is where missing
geodata gets fetched. Flipping at fork time made that fetch SERVFAIL, the config
fatal, and the unit unstartable.

* fix(justfile): keep local endpoints out of the agent proxy

With only HTTP_PROXY set, a request to this host's own llama-swap endpoint went
to mihomo. Node matches exact hosts only, so the literals carry it; the CIDRs
serve curl and Go.

* feat(justfile): seed mihomo geodata into the service state dir

So a cold start never needs the download that the DNS takeover made unstartable.
2026-10-09 12:31:59 +08:00
..
2026-02-16 21:35:39 +08:00

Host - AI

Desktop (NixOS + preservation, LUKS + btrfs on nvme). Disk layout is declarative via disko (target device: the KINGBANK NVMe by /dev/disk/by-id/, set in that file).

Related:

  • nixos-installer README – install from ISO using disko
  • disko-fs.nix – main disk layout (ESP + LUKS + btrfs). From nix-config/nixos-installer:
    nix run github:nix-community/disko -- --mode destroy,format,mount ../hosts/idols-ai/disko-fs.nix
  • disko-fs-data.nix – data disk layout (LUKS + btrfs at /data)
  • MIXED-MEMORY.md – mixed 4-DIMM RAM bring-up, stress testing, and recovery

Info

The disk layout is fully declarative — see disko-fs.nix for the root disk and disko-fs-data.nix for the data disk. Run df -Th / lsblk on the host if an up-to-date snapshot of the current mounts is needed.