oqyude 1b188fbdb5 test(ci): add an import-graph check, green on the current tree (T41 net)
Nothing in this repo verifies that an import actually resolves. That matters
here more than usual: several modules are referenced only through
commented-out import lines, and 15 .nix files sit outside the import graph
entirely, so a stale reference is invisible until someone uncomments it or
nix evaluation happens to touch that file.

The check is deliberately narrow: it matches only two import shapes — a line
whose whole content (after an optional `#`) is a relative path, and
`import ../foo` / single-line `imports = [ ./a ./b ]`. Prose and shell-script
bodies are not matched, and anything containing `${...}` is skipped because it
cannot be resolved statically. Commented-out import lines ARE matched on
purpose: a comment naming a deleted file still misleads the next reader.

Baseline on the current tree: 132 .nix files, 120 import references, all
resolve. Wired in as check #8 of .ci/checks.sh; skips when python3 is absent.

`bash .ci/checks.sh --no-build` → PASS 3 / FAIL 0.

Not pushed.
2026-10-24 01:44:27 +03:00
2026-10-24 01:40:02 +03:00
2026-05-04 20:23:20 +03:00
2026-08-11 02:31:00 +03:00
ref
2026-03-29 14:46:01 +03:00
2026-10-13 16:16:20 +03:00
2026-06-10 12:38:23 +03:00

I'm a super newbie who just posted my stuff here. Now maybe about intermediate

S
Description
My NixOS configuration
Readme
4.6 MiB
0 Stars 1 Watchers 0 Forks
Languages
Nix 82.8%
Python 9%
Shell 7.3%
Dockerfile 0.5%
Perl 0.4%