mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 12:51:34 +01:00
Remove custom checks
This commit is contained in:
parent
a8f9d8108d
commit
96786e94be
4 changed files with 3 additions and 30 deletions
|
|
@ -75,7 +75,6 @@
|
|||
systems = [ "x86_64-linux" ];
|
||||
|
||||
imports = [
|
||||
./flake/checks.nix
|
||||
./flake/dev-shells.nix
|
||||
./flake/formatter.nix
|
||||
./flake/hosts.nix
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -54,5 +54,7 @@ in
|
|||
|> builtins.readDir
|
||||
|> lib.filterAttrs (_: type: type == "directory")
|
||||
|> lib.concatMapAttrs (name: _: mkDeployNode name);
|
||||
|
||||
checks = builtins.mapAttrs (_: deployLib: deployLib.deployChecks self.deploy) inputs.deploy-rs.lib;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
2
justfile
2
justfile
|
|
@ -14,7 +14,7 @@ fmt:
|
|||
nix fmt
|
||||
|
||||
check:
|
||||
nix flake check
|
||||
nix flake check --no-build
|
||||
|
||||
dev shell='default':
|
||||
nix develop .#{{ shell }} --command zsh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue