Skip to content

Commit

Permalink
chore(nix): remove 'pre-commit-hooks.nix' in favor of the code being …
Browse files Browse the repository at this point in the history
…in 'flake.nix'
  • Loading branch information
sofiedotcafe committed Mar 15, 2024
1 parent 299f316 commit 94b710b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
13 changes: 12 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,25 @@
systems = ["x86_64-linux"];

imports = [
./pre-commit-hooks.nix
inputs.pre-commit-hooks.flakeModule
];

perSystem = {
config,
pkgs,
...
}: {
pre-commit = {
settings.excludes = ["flake.lock"];

settings = {
hooks = {
alejandra.enable = true;
yamllint.enable = true;
markdownlint.enable = true;
};
};
};
devShells.default = pkgs.mkShell {
packages = [
pkgs.alejandra
Expand Down
15 changes: 0 additions & 15 deletions pre-commit-hooks.nix

This file was deleted.

0 comments on commit 94b710b

Please sign in to comment.