Skip to content

Commit

Permalink
Use nixfmt as nix formatter
Browse files Browse the repository at this point in the history
Signed-off-by: Henri Rosten <[email protected]>
  • Loading branch information
henrirosten committed Jan 5, 2025
1 parent 85b9dfb commit 78cff18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nix/treefmt.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
inherit (config.flake-root) projectRootFile;

programs = {
alejandra.enable = true; # nix formatter https://github.com/kamadorueda/alejandra
black.enable = true; # lints python https://github.com/psf/black
isort.enable = true; # sort python imports https://github.com/PyCQA/isort
deadnix.enable = true; # removes dead nix code https://github.com/astro/deadnix
isort.enable = true; # sort python imports https://github.com/PyCQA/isort
shellcheck.enable = true; # lints shell scripts https://github.com/koalaman/shellcheck
nixfmt.enable = true; # nix formatter https://github.com/NixOS/nixfmt
nixfmt.package = pkgs.nixfmt-rfc-style; # rfc-166 formatting conform version
statix.enable = true; # prevents use of nix anti-patterns https://github.com/nerdypepper/statix
};
};
Expand Down

0 comments on commit 78cff18

Please sign in to comment.