mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 11:41:34 +01:00
24 lines
627 B
Nix
24 lines
627 B
Nix
{ inputs, self, ... }:
|
|
{
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
checks = {
|
|
treefmt = (import ./treefmt.nix { inherit inputs pkgs; }).check self;
|
|
|
|
statix = pkgs.runCommand "statix" { buildInputs = [ pkgs.statix ]; } ''
|
|
statix check ${self}
|
|
mkdir $out
|
|
'';
|
|
|
|
deadnix = pkgs.runCommand "deadnix" { buildInputs = [ pkgs.deadnix ]; } ''
|
|
deadnix ${self} --fail --exclude ${self}/flake/formatter.nix
|
|
mkdir $out
|
|
'';
|
|
};
|
|
};
|
|
|
|
flake.checks = builtins.mapAttrs (
|
|
_: deployLib: deployLib.deployChecks self.deploy
|
|
) inputs.deploy-rs.lib;
|
|
}
|