mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-12 01:37:53 +08:00
Add treefmt
This commit is contained in:
parent
fafbc05712
commit
73137b50fa
2 changed files with 7 additions and 3 deletions
|
|
@ -1,8 +1,9 @@
|
|||
{ pkgs ? import <nixpkgs> { }, ... }:
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.nixpkgs-fmt
|
||||
buildInputs = with pkgs; [
|
||||
treefmt
|
||||
nixpkgs-fmt
|
||||
# To enable webhint to analyze source files
|
||||
pkgs.nodejs
|
||||
nodejs
|
||||
];
|
||||
}
|
||||
|
|
|
|||
3
treefmt.toml
Normal file
3
treefmt.toml
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[formatter.nix]
|
||||
command = "nixpkgs-fmt"
|
||||
includes = ["*.nix"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue