checks: Add formatting, statix and deadnix checks

This commit is contained in:
SebastianStork 2026-02-18 19:24:56 +01:00
parent 71132b3c94
commit 3ecc10c445
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
5 changed files with 95 additions and 10 deletions

View file

@ -1,16 +1,8 @@
{ inputs, ... }:
{ inputs, self, ... }:
{
perSystem =
{ pkgs, ... }:
{
formatter =
(inputs.treefmt.lib.evalModule pkgs {
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
prettier.enable = true;
just.enable = true;
};
}).config.build.wrapper;
formatter = (inputs.treefmt.lib.evalModule pkgs "${self}/treefmt.nix").config.build.wrapper;
};
}