Repository navigation
chore: delete dead Nix copies and repository cruft - #55
Merged
Merged
Conversation
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
cooper (czxtm)
had a problem deploying
to
docs-preview
September 23, 2026 12:41 — with
GitHub Actions
Failure
Contributor
|
Preview |
Contributor
|
Docs preview |
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mkOutputsandcheck-files-driftwere also checked against the sibling darkmatter repos.Deleted:
nix/internal/flake/**, a stale copy ofnix/flake/options-core.nix,evalconfig.nix,envvars*andservices-default.nixper-system-outputs.nixand thelib.mkOutputsexport (no sibling repo uses it)check-files-driftscriptnix/flake/devshellsandnix/NOTES.mdapps/web/.stackpanel/**packages/ui/img(26 PNGs).omo, removed from the index (it is already gitignored)infra/sstand orphaned SST filesVerification:
nix flake show,nix flake check --no-buildand devshell entry all succeed.stackpanelConfigevaluates byte-identical to main once store hashes are normalized.defaultandminimalfail the same way on main (stackpanel-thq.20).stackpanelFullConfigJSON and the 4 test fixtures fail the same way on main (stackpanel-thq.21, stackpanel-thq.22).Refs stackpanel-thq.12