Manage a user environment using Nix [maintainer=@khaneliman, @rycee]
This report summarizes scanner evidence for nix-community/home-manager, a Nix project with 10,421 GitHub stars. SynthScan examined 21,050 lines of code across 704 source files, recording 54 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 4.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 27 finding(s).
Are imports declared and package/API names verified? 18 finding(s).
Are wrappers, guards, and repeated structures necessary? 14 finding(s).
Which changes need focused human review? 54 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 54 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/tests.py | 116 | f'(builtins.filter (name: builtins.match "{test_prefix}.*" name != null) ' | CODE |
| HIGH | docs/mdbook/legacy-redirects.py | 35 | return null; | CODE |
| HIGH | docs/mdbook/legacy-redirects.py | 38 | if (t === null) return; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/modules/programs/abook/with-settings.cfg | 4 | # Defining a new custom field | COMMENT |
| MEDIUM⚡ | tests/modules/programs/abook/with-settings.cfg | 11 | # Defining a view/tab | COMMENT |
| MEDIUM | lib/python/generate-all-maintainers.py | 101 | # This file is automatically generated using meta.maintainers from Home Manager evaluation | COMMENT |
| MEDIUM | lib/bash/home-manager.sh | 4 | # This file contains a number of utilities for use by the home-manager tool and | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/modules/programs/pandoc/defaults-expected.json | 4 | "author": "John Doe" | CODE |
| LOW | …rams/thunderbird/thunderbird-expected-second-darwin.js | 32 | user_pref("mail.identity.id_bcd3ace52bed41febb6cdc2fb1303aebaa573e0d993872da503950901bb6c6fc.useremail", "hm@example.org | CODE |
| LOW | …grams/thunderbird/thunderbird-expected-second-linux.js | 32 | user_pref("mail.identity.id_bcd3ace52bed41febb6cdc2fb1303aebaa573e0d993872da503950901bb6c6fc.useremail", "hm@example.org | CODE |
| LOW | …grams/thunderbird/thunderbird-expected-first-darwin.js | 68 | user_pref("mail.identity.id_bcd3ace52bed41febb6cdc2fb1303aebaa573e0d993872da503950901bb6c6fc.useremail", "hm@example.org | CODE |
| LOW | …ograms/thunderbird/thunderbird-expected-first-linux.js | 68 | user_pref("mail.identity.id_bcd3ace52bed41febb6cdc2fb1303aebaa573e0d993872da503950901bb6c6fc.useremail", "hm@example.org | CODE |
| LOW | docs/manual/introduction.md | 10 | userEmail = "joe@example.org"; | CODE |
| LOW | docs/manual/introduction.md | 19 | email = "joe@example.org" | CODE |
| LOW | docs/manual/usage/dotfiles.md | 19 | userName = "Jane Doe"; | CODE |
| LOW | docs/manual/usage/dotfiles.md | 20 | userEmail = "jane.doe@example.org"; | CODE |
| LOW | modules/programs/codex/normalize-plugins.py | 69 | placeholder_key = f"{spec['placeholder']}@{marketplace_name}" | CODE |
| LOW | modules/programs/codex/normalize-plugins.py | 76 | plugin = plugins_by_placeholder[spec["placeholder"]] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | home-manager/completion.bash | 1 | #!/bin/env bash | COMMENT |
| LOW | home-manager/completion.bash | 21 | # | COMMENT |
| LOW | home-manager/completion.bash | 41 | # * run: « bash --noprofile --norc ./share/bash-completion/completions/home-manager » | COMMENT |
| LOW | home-manager/completion.bash | 61 | # expire-generations | COMMENT |
| LOW | home-manager/completion.bash | 81 | # 203 | COMMENT |
| LOW | home-manager/completion.bash | 101 | # | COMMENT |
| LOW | home-manager/completion.bash | 121 | # Default is '~/.config/nixpkgs/home.nix'. | COMMENT |
| LOW | home-manager/completion.bash | 141 | # switch Build and activate configuration | COMMENT |
| LOW | home-manager/completion.bash | 181 | # | COMMENT |
| LOW | lib/bash/home-manager.sh | 1 | #!/usr/bin/env bash | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/modules/programs/abook/with-settings.cfg | 5 | # ----------------------------- | COMMENT |
| MEDIUM⚡ | tests/modules/programs/abook/with-settings.cfg | 12 | # --------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tests.py | 222 | except Exception: | CODE |
| LOW | tests/tests.py | 294 | except Exception: | CODE |
| LOW | lib/python/generate-all-maintainers.py | 76 | except Exception as e: | CODE |
| LOW | lib/python/generate-all-maintainers.py | 135 | except Exception as e: | CODE |
| MEDIUM | lib/python/generate-all-maintainers.py | 178 | print(f"Error: Could not find maintainers.nix in {hm_root}") | CODE |
| LOW | lib/python/generate-all-maintainers.py | 193 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | MAINTAINING.md | 53 | #### Step 1: On master - Mark Current as Stable | COMMENT |
| LOW | MAINTAINING.md | 104 | #### Step 2: Cut the release branch | COMMENT |
| LOW | MAINTAINING.md | 112 | #### Step 3: On the release branch - Mark as Release Branch | COMMENT |
| LOW | MAINTAINING.md | 203 | #### Step 4: On master - Prepare for Next Release | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tests.py | 55 | def _read_flake_override_paths(overrides_path: str | None) -> dict[str, str]: | CODE |
| LOW | tests/tests.py | 80 | def _format_flake_override_args(overrides: dict[str, str]) -> list[str]: | CODE |
| LOW | lib/python/manage-reviewers.py | 89 | def get_manual_reviewer_actions( | CODE |
| LOW | lib/python/generate-all-maintainers.py | 53 | def extract_maintainers_from_meta(self) -> dict: | CODE |
| LOW | lib/python/generate-all-maintainers.py | 80 | def generate_maintainers_file(self) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/tests.py | 222 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/tests.py | 226 | CODE | |
| LOW | lib/python/validate-maintainer-entries.py | 14 | CODE | |
| LOW | lib/python/manage-reviewers.py | 89 | CODE | |
| LOW | lib/python/check-duplicate-maintainers.py | 16 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/mdbook/render-options.py | 2 | CODE | |
| LOW | docs/mdbook/option_links.py | 11 | CODE | |
| LOW | docs/mdbook/substitute-summary.py | 2 | CODE | |
| LOW | docs/mdbook/convert-markup.py | 2 | CODE |