Skip to content

Automatically format code with nixfmt#1707

Open
GaetanLepage wants to merge 3 commits into
nix-darwin:masterfrom
GaetanLepage:nixfmt
Open

Automatically format code with nixfmt#1707
GaetanLepage wants to merge 3 commits into
nix-darwin:masterfrom
GaetanLepage:nixfmt

Conversation

@GaetanLepage
Copy link
Copy Markdown

@GaetanLepage GaetanLepage commented Feb 22, 2026

Motivation

Now that nixfmt was promoted as the official nix formatter, I propose to format the nix-darwin code-base with it.

Done:

  • treewide: format code with nixfmt
  • add formatting commit to .git-blame-ignore-revs
  • flake.nix: add nixfmt as the flake formatter

TODO:

  • add a CI check to enforce proper formatting
  • add a pre-commit hook to enforce proper formatting

Fixes #1054

@GaetanLepage
Copy link
Copy Markdown
Author

@emilazy you mentionned being interested in such a proposal. Do you have any opinion on this draft?
What's your recommendation regarding pre-commit hook and CI checks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autoformatting PRs

1 participant