From 13e90d06b5d075180bba3f3e8ada5fb7629f49ad Mon Sep 17 00:00:00 2001 From: oqyude Date: Sat, 24 Oct 2026 01:46:23 +0300 Subject: [PATCH] chore(modules): delete 12 unreferenced modules (T41) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit None of these are reachable from any import, so removing them cannot change evaluation. Verified with the import-graph check added in 1b188fb, which is green before and after (132 -> 120 .nix files, 119 references resolve), and with an exact import-shaped grep for each path (zero hits outside archive/). Deleted: modules/other/{daw,musnix,virtual,wine}.nix modules/other/gaming/{aagl,nix-gaming}.nix modules/other/self/fingerprint.nix modules/default.nix only imports ./, and `other` is not a device type (lib/xlib/device.nix:12-41). Four of these also import flake inputs that are commented out in flake.nix (:8 fingerprint, :102 nix-gaming, :103 aagl, :110 musnix), so they could not even evaluate. modules/server/requirements.nix Orphaned copy of a subset of the pins that modules/server/engipy-backend.nix embeds inline at :46-67. The two lists had already diverged: the orphan had 14 entries, the live one has 20+ (structlog, pandas, openpyxl, python-multipart, python-dotenv were missing from the orphan). modules/containers/remnanode.nix tmpfiles-only; its three rules duplicate modules that are imported. modules/containers/remnawave-examples/{docker-compose-local,docker-compose-prod}.nix compose2nix snapshots of the abandoned remnawave stack; the real module is preserved in archive/containers/remnawave.nix. modules/vds/glances.nix Byte-identical to modules/server/glances.nix (md5 f0133606...), whose import at modules/vds/default.nix:13 was commented out. Also drops the now-dangling `# ./glances.nix` line from modules/vds/default.nix. Deliberately NOT deleted, because "not imported" there means "disabled on purpose" rather than "abandoned", and git history alone would not recover the intent: modules/vds/netbird.nix (40 lines, every option `enable = false`) modules/wsl/tools/default.nix (16 lines, a commented-out dev toolchain) home/apps/v2rayn.nix (23 lines, pairs with a package that is still installed in home/modules/packages.nix:19) Note: the commented-out flake inputs in flake.nix that existed only for modules/other/ are now vestigial. Left in place — removing them also rewrites flake.lock behaviour and needs a nix run, see .agent/tasks/manifest.md T54. Not pushed. --- modules/vds/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/vds/default.nix b/modules/vds/default.nix index 57fd048..75c15b7 100644 --- a/modules/vds/default.nix +++ b/modules/vds/default.nix @@ -10,7 +10,9 @@ ./nginx.nix ./samba.nix ./systemd.nix - # ./glances.nix + # NetBird is not deployed on the VDS. The module is kept as a scaffold + # (every option in it is `enable = false`), so this line stays commented + # and will be validated by .ci/tests/import-graph.py. # ./netbird.nix ]; # VDS hosts the public-facing Xray REALITY inbound on container:443,