♻️ refactor layout, simplify flake.nix

This commit is contained in:
2023-07-27 15:22:16 -04:00
parent 74296f8b9b
commit d4b4ba1d1e
12 changed files with 225 additions and 228 deletions

12
nix/checks.nix Normal file
View File

@ -0,0 +1,12 @@
{ self, system, pre-commit-hooks, ... }:
with self.pkgs.${system};
{
pre-commit-check = pre-commit-hooks.lib.${system}.run {
src = ./.;
hooks = {
deadnix.enable = true;
nixpkgs-fmt.enable = true;
statix.enable = true;
};
};
} // (deploy-rs.lib.deployChecks self.deploy)