mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 00:39:07 +01:00
20 lines
527 B
Nix
20 lines
527 B
Nix
{ inputs, self, ... }:
|
|
{
|
|
perSystem =
|
|
{ inputs', pkgs, ... }:
|
|
{
|
|
checks = {
|
|
formatting = (inputs.treefmt.lib.evalModule pkgs "${self}/treefmt.nix").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
|
|
'';
|
|
};
|
|
};
|
|
}
|