Skip to content

chore: delete dead Nix copies and repository cruft - #55

Merged
cooper (czxtm) merged 1 commit into
mainfrom
chore/delete-nix-and-repo-cruft
Sep 23, 2026
Merged

cooper (czxtm) merged 1 commit into
mainfrom
chore/delete-nix-and-repo-cruft

Conversation

@czxtm

Copy link
Copy Markdown
Member

Deletes dead Nix copies and repository cruft found in the September 2026 codebase review: 136 files, +16/-54,248 lines, about 9.9 MB. Every item was grepped for importers, callers and references across Nix imports, string paths, docs, CI, the Justfile and scripts. lib.mkOutputs and check-files-drift were also checked against the sibling darkmatter repos.

Deleted:

  • nix/internal/flake/**, a stale copy of nix/flake/
  • core options-core.nix, evalconfig.nix, envvars* and services-default.nix
  • per-system-outputs.nix and the lib.mkOutputs export (no sibling repo uses it)
  • the unused check-files-drift script
  • nix/flake/devshells and nix/NOTES.md
  • the example-monorepo and devenv templates, which were never exported
  • apps/web/.stackpanel/**
  • packages/ui/img (26 PNGs)
  • five docs that contained pasted agent-session transcripts
  • .omo, removed from the index (it is already gitignored)
  • infra/sst and orphaned SST files
  • two stale config examples

Verification:

  • nix flake show, nix flake check --no-build and devshell entry all succeed.
  • stackpanelConfig evaluates byte-identical to main once store hashes are normalized.
  • 7 of 9 templates evaluate. default and minimal fail the same way on main (stackpanel-thq.20).
  • The stackpanelFullConfig JSON and the 4 test fixtures fail the same way on main (stackpanel-thq.21, stackpanel-thq.22).

Refs stackpanel-thq.12

Remove code and files that have no importers, callers or references,
found in the Sep 2026 codebase review. Each item was grepped across the
repo (Nix imports, string paths, docs, CI, Justfile, scripts). The
public lib.mkOutputs export and the check-files-drift devshell binary
were also checked against the sibling darkmatter repos; nothing uses
them.

Nix:
- nix/internal/flake/: stale copy of nix/flake/ that nothing imports.
  nix/internal/devshell/scripts stays; .stack/modules imports it.
- nix/stackpanel/core/options-core.nix: never imported; a drifted twin
  of core/options/core.nix.
- core/lib/evalconfig.nix: drifted twin of the evaluator the Go CLI
  embeds (apps/stackpanel-go/pkg/nixeval/eval.nix).
- core/lib/envvars.nix and envvars/: env-var catalog (including
  mkGoConstants) that nothing imports. The Go envvars package is the
  live registry.
- core/lib/services-default.nix: never imported.
- nix/flake/per-system-outputs.nix and the lib.mkOutputs export it
  backed: superseded by nix/flake/per-system/. The only reference was
  an invalid README example.
- check-files-drift in files/default.nix: the Go FilesReconciler
  (rc_files.go) replaced it; nothing calls or documents it.
- nix/flake/devshells/ (a backwards-compat stub) and nix/NOTES.md
  (stale notes): nothing references them.
- The example-monorepo template with tests/test_monorepo.sh (which cds
  into a nonexistent alchemy/ dir), and the devenv template. Neither is
  exported by exports.nix; nix/flake/README.md already says the devenv
  template was removed.

Repository cruft:
- apps/web/.stackpanel/: state, keys and generated files under the
  legacy directory name.
- packages/ui/img/: 26 unreferenced PNGs (about 7.6 MB).
- docs/{infra,infradeploy,machines,colmena,sess-infra}.md: about 47k
  lines of pasted agent session transcripts (infra.md and
  infradeploy.md are identical).
- .omo/: stop tracking it; it is already in .gitignore.
- infra/sst/, sst.config.example.ts and tests/deployment/: orphaned SST
  configs.
- .stack/config.example.nix and
  apps/stackpanel-go/.stack/config.nix.example: stale snapshots of the
  starter config. `stack config generate` and generate-config-example
  recreate them on demand.

Update the references to deleted files: the nix/ and nix/flake/
READMEs, core/README.md and its generated core.mdx,
docs/environment-variables.md (the Go package is now the only source,
at its current path), and comments in profile.nix, global-outputs.nix,
aws/default.nix, envvars.go and rc_files.go.

Keep the docker module's images/imagesComputed options. The module
README documents them with a usage example, so removing them is an
option removal for users rather than a local cleanup.

Refs: stackpanel-thq.12
@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Preview pr-55 has been destroyed.

@czxtm
cooper (czxtm) merged commit 49231b1 into main Sep 23, 2026
13 of 14 checks passed
@linear-code

linear-code Bot commented Sep 23, 2026

Copy link
Copy Markdown

ENG-837

@github-actions

Copy link
Copy Markdown
Contributor

Docs preview pr-55 has been destroyed.

@czxtm
cooper (czxtm) deleted the chore/delete-nix-and-repo-cruft branch September 23, 2026 12:50

This branch had an error being deployed

1 failed and 1 active deployments
docs-preview — 3a9143eb Deployed Sep 23, 2026 by czxtm via deploy #186
pr-55 — 3a9143eb Deployed Sep 23, 2026 by czxtm via deploy #201
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant