hyperhive/nix/templates
iris 65532e8387 frontend: tighten extraFiles target type to strMatching regex
damocles suggested using lib.types.strMatching for the target option
itself rather than relying solely on the post-hoc assertion. Pattern:
`^[A-Za-z0-9_][A-Za-z0-9_./-]*$` — first char alphanumeric/_, then
alphanumerics + _ + . + / + - allowed (so nested layouts like
"games/bitburner" still work).

This rejects at type-check time:
- leading `/` (absolute paths)
- leading `.` (so `..` as a full string blocked, also `./foo`)
- leading `-` (would parse as flag by some tools)
- spaces, control chars, weird unicode

The existing assertion stays — it catches mid-path `..` segments
(`foo/../bar`) that the regex can't reject without lookahead. POSIX
regex (which nix uses) doesn't support lookahead, so the
type-and-assertion split is the cleanest expression.

Refs #273.
2026-05-23 14:51:01 +02:00
..
agent-base.nix frontend: wire static-dir env var + per-agent extraFiles option 2026-05-23 14:51:01 +02:00
harness-base.nix frontend: tighten extraFiles target type to strMatching regex 2026-05-23 14:51:01 +02:00
manager.nix frontend: wire static-dir env var + per-agent extraFiles option 2026-05-23 14:51:01 +02:00
weston-vnc.nix nix: drop unused weston-rdp.nix (closes #263) 2026-05-22 17:30:32 +02:00