Repository navigation
feat(flake): treefmt-nix, deadnix/statix, modules, and nix run .#install (#777) - #790
Merged
Merged
Conversation
Land the #777 flake-polish bucket: - treefmt-nix: `nix fmt` and the flake format gate now run treefmt across nix (nixfmt-rfc-style), python (ruff-format), and toml (taplo) in one pass, wrapping the same formatters the pre-commit hooks use. `checks.format` becomes `checks.formatting` (treefmt --fail-on-change). - deadnix + statix: added as `checks.deadnix`/`checks.statix` (scoped to the authored flake.nix) and to devTools. Fixed the two findings this surfaced (unused overlay args; `inherit (pkgs) vulnix`). - nixosModules.default / homeManagerModules.default: install the shared devTools toolchain via `programs.vigos-devtools.enable`. - apps.install: `nix run .#install` wraps install.sh (the behavior SSoT). docs/NIX.md and CHANGELOG updated. Refs: #777
Signed-off-by: Carlos Vigo <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lands the A7 flake-polish bucket (roadmap thread A, PR #670 review), full scope per the plan:
nix fmtand the flake format gate now runtreefmtacross nix (nixfmt-rfc-style), python (ruff-format), and toml (taplo) in one pass, wrapping the same formatters the pre-commit hooks already run.checks.format→checks.formatting(treefmt --fail-on-change).checks.deadnix/checks.statix(scoped to the authoredflake.nix; the downstream scaffold + example keep their idiomatic{ self, … }signatures), and both joindevTools. Fixed the two findings this surfaced: unused overlay args (_final/_prev) andinherit (pkgs) vulnix.nixosModules.default/homeManagerModules.defaultinstall the shareddevToolstoolchain viaprograms.vigos-devtools.enable = true.apps.install, sonix run github:vig-os/devcontainer#installbootstraps a consumer project straight from the flake (install.shstays the behavior SSoT).Verification
nix flake check --accept-flake-config→ all checks passed (formatting, deadnix, statix, devShell, devShellTools).nix run .#install -- --helpexits 0.tests/test_flake_checks.pyextended (TDD RED→GREEN): formatter is treefmt, checks expose the new gates, install app is runnable, both modules are exposed. 4 passed.Docs:
docs/NIX.md(formatting/checks/modules/install app) +CHANGELOG.md(Added + Changed).Refs: #777