fmt: use 'nix fmt'

This commit is contained in:
Aaron Bieber 2022-09-01 11:49:36 -06:00
parent 13b4a825cf
commit 0e778d32be
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -11,9 +11,7 @@
stable.url = "github:NixOS/nixpkgs/nixos-22.05-small";
nixos-hardware = {
url = "github:NixOS/nixos-hardware/master";
};
nixos-hardware = { url = "github:NixOS/nixos-hardware/master"; };
emacs-overlay = {
url = "github:nix-community/emacs-overlay";
@ -86,7 +84,6 @@
go
jq
nix-diff
nixfmt
sops
ssh-to-age
ssh-to-pgp
@ -121,6 +118,9 @@
};
};
formatter.x86_64-linux = stable.legacyPackages.x86_64-linux.nixfmt;
formatter.aarch64-darwin = stable.legacyPackages.aarch64-darwin.nixfmt;
devShells.x86_64-linux.default = buildShell pkgs;
devShells.aarch64-darwin.default = buildShell darwinPkgs;

2
fmt
View File

@ -1,6 +1,6 @@
#!/bin/sh
for i in $(find . -name \*.nix ); do
nixfmt $i
nix fmt $i
done
statix check .