modules/wsl/nix-serve.nix was a byte-identical copy of modules/server/nix-serve.nix — md5 0aca1128f12f975d2376db21fbd92e40 for both. Two live hosts, two copies of the same 25 lines: any fix to one silently missed the other. The WSL module now imports ../server/nix-serve.nix. Equivalence is established by content, not by a run: the module body is identical, and its `sopsFile = ./secrets/nix-serve.yaml` resolves relative to the importing file — so WSL now reads modules/server/secrets/nix-serve.yaml, which is itself byte-identical to the copy it used to read (md5 af6e04419e8b3dd467c8cb693f374782 for both). The evaluated configuration is therefore unchanged; only the paths differ. `services.nix-serve` is now declared by exactly one file in the repo. Verified: import-graph check green (119 .nix files, 119 references), and `bash .ci/checks.sh --no-build` -> PASS 3 / FAIL 0. Note: modules/wsl/secrets/nix-serve.yaml is now unreferenced. It is NOT deleted here — secrets need explicit owner sign-off, see .agent/tasks/manifest.md T53. Not pushed.
24 lines
785 B
Nix
24 lines
785 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
../pkgs/beets.nix
|
|
# The WSL nix-serve module used to be a byte-identical copy of the server
|
|
# one (md5 0aca1128...). Importing the server module directly keeps a
|
|
# single source; its `sopsFile = ./secrets/nix-serve.yaml` then resolves
|
|
# to modules/server/secrets/nix-serve.yaml, which is itself byte-identical
|
|
# to the copy that used to live in modules/wsl/secrets/ (md5 af6e0441...),
|
|
# so the evaluated configuration is unchanged.
|
|
../server/nix-serve.nix
|
|
./builder.nix
|
|
# ./tools
|
|
# ./containers removed 2026-10-10: contained only kokoro-tts.nix
|
|
# which was archived to archive/containers/. The import resolved
|
|
# to modules/wsl/containers/default.nix — now removed (dead).
|
|
];
|
|
}
|