feat(depotfmt): format Nix code using nixpkgs-fmt

Change-Id: Ieffd04e1654e37500a6f6f5e4f29d09137bbc4e9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5142
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-01-30 19:05:29 +03:00 committed by tazjin
parent aa122cbae7
commit 120f0aa253

View file

@ -18,6 +18,14 @@ let
[formatter.tf] [formatter.tf]
command = "${terraformat}" command = "${terraformat}"
includes = [ "*.tf" ] includes = [ "*.tf" ]
[formatter.nix]
command = "${pkgs.nixpkgs-fmt}/bin/nixpkgs-fmt"
includes = [ "*.nix" ]
excludes = [
"third_party/nix/tests/*",
"third_party/nix/src/tests/*"
]
''; '';
# helper tool for formatting the depot interactively # helper tool for formatting the depot interactively