Remove custom checks

This commit is contained in:
SebastianStork 2025-05-28 18:19:14 +02:00
parent a8f9d8108d
commit 96786e94be
4 changed files with 3 additions and 30 deletions

View file

@ -75,7 +75,6 @@
systems = [ "x86_64-linux" ]; systems = [ "x86_64-linux" ];
imports = [ imports = [
./flake/checks.nix
./flake/dev-shells.nix ./flake/dev-shells.nix
./flake/formatter.nix ./flake/formatter.nix
./flake/hosts.nix ./flake/hosts.nix

View file

@ -1,28 +0,0 @@
{ inputs, self, ... }:
{
perSystem =
{ pkgs, ... }:
{
checks = {
# Ignore hosts.nix until https://github.com/oppiliappan/statix/issues/88 is resolved
statix = pkgs.runCommand "statix" { buildInputs = [ pkgs.statix ]; } ''
statix check --ignore ${self}/flake/hosts.nix ${self}
mkdir $out
'';
deadnix = pkgs.runCommand "deadnix" { buildInputs = [ pkgs.deadnix ]; } ''
deadnix --fail ${self}
mkdir $out
'';
flake-checker = pkgs.runCommand "flake-checker" { buildInputs = [ pkgs.flake-checker ]; } ''
flake-checker --fail-mode
mkdir $out
'';
};
};
flake.checks = builtins.mapAttrs (
_: deployLib: deployLib.deployChecks self.deploy
) inputs.deploy-rs.lib;
}

View file

@ -54,5 +54,7 @@ in
|> builtins.readDir |> builtins.readDir
|> lib.filterAttrs (_: type: type == "directory") |> lib.filterAttrs (_: type: type == "directory")
|> lib.concatMapAttrs (name: _: mkDeployNode name); |> lib.concatMapAttrs (name: _: mkDeployNode name);
checks = builtins.mapAttrs (_: deployLib: deployLib.deployChecks self.deploy) inputs.deploy-rs.lib;
}; };
} }

View file

@ -14,7 +14,7 @@ fmt:
nix fmt nix fmt
check: check:
nix flake check nix flake check --no-build
dev shell='default': dev shell='default':
nix develop .#{{ shell }} --command zsh nix develop .#{{ shell }} --command zsh