test(nix): add formatting check

This commit is contained in:
Price Hiller 2024-05-10 00:02:07 -05:00
parent faac33bd56
commit 886ab40448
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -124,6 +124,22 @@
''; '';
}; };
}); });
checks = forAllSystems (pkgs: {
formatting =
pkgs.runCommand "check-fmt"
{
buildInputs = with pkgs; [
findutils
(import ./pkgs { inherit pkgs; }).Fmt
];
}
''
set -euo pipefail
cd "${self}"
find . -type f | xargs Fmt
touch $out
'';
});
apps = forAllSystems (pkgs: { apps = forAllSystems (pkgs: {
home-manager-init = { home-manager-init = {
type = "app"; type = "app";