mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 11:59:08 +01:00
23 lines
584 B
Nix
23 lines
584 B
Nix
{ inputs, self, ... }:
|
|
{
|
|
perSystem =
|
|
{ inputs', pkgs, ... }:
|
|
{
|
|
checks = {
|
|
formatting =
|
|
"${self}/treefmt.nix"
|
|
|> inputs.treefmt.lib.evalModule pkgs
|
|
|> (formatter: formatter.config.build.check self);
|
|
|
|
statix = pkgs.runCommand "statix" { buildInputs = [ inputs'.statix.packages.statix ]; } ''
|
|
statix check ${self}
|
|
touch $out
|
|
'';
|
|
|
|
deadnix = pkgs.runCommand "deadnix" { buildInputs = [ pkgs.deadnix ]; } ''
|
|
deadnix --fail ${self}
|
|
touch $out
|
|
'';
|
|
};
|
|
};
|
|
}
|