share-host/nix/formatter.nix

14 lines
295 B
Nix
Raw Permalink Normal View History

2024-11-16 16:07:17 +01:00
{ inputs, ... }:
{
imports = [ inputs.treefmt-nix.flakeModule ];
perSystem = _: {
treefmt = {
# https://flake.parts/options/treefmt-nix < for all options
projectRootFile = ".git/config";
programs.nixfmt.enable = true;
programs.black.enable = true;
};
};
}