chore: add module for formatting

This will export a check for formatting and makes `nix fmt` use treefmt
This commit is contained in:
DavHau
2023-07-12 19:00:09 +02:00
parent af94d11b1a
commit 4036df90d2
4 changed files with 44 additions and 1 deletions

23
flake.lock generated
View File

@@ -76,7 +76,28 @@
"inputs": {
"flake-parts": "flake-parts",
"nixos-generators": "nixos-generators",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"treefmt-nix": "treefmt-nix"
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1689070229,
"narHash": "sha256-99VU2FTkEdO3/1Qr78fHWWlN5GaOGLaXDi26PNiUf+I=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "3c54278bf7b8642eba174a22ca02d5552c21dc0b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
}
},