refactor(modules): drop the duplicated WSL nix-serve module (T45)

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.
This commit is contained in:
oqyude committed 2026-10-24 02:25:38 +03:00
1 parent 8c864667dd
commit 0d52f2058d
2 files changed
+7 -26

No files matched your search

+7 -1
View File
@@ -7,7 +7,13 @@
{
imports = [
../pkgs/beets.nix
./nix-serve.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