1
0
forked from clan/clan-core
clan-core/flake-parts/formatting.nix
DavHau 4036df90d2 chore: add module for formatting
This will export a check for formatting and makes `nix fmt` use treefmt
2023-07-12 19:24:05 +02:00

16 lines
327 B
Nix

{self, inputs, ...}: {
imports = [
inputs.treefmt-nix.flakeModule
];
perSystem = {
pkgs,
...
}: {
treefmt.projectRootFile = "flake.nix";
treefmt.flakeCheck = true;
treefmt.flakeFormatter = true;
treefmt.programs.alejandra.enable = true;
treefmt.programs.shellcheck.enable = true;
};
}