about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--flake.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index e36b4ed..a77cff1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -73,6 +73,18 @@
               src = ./.;
 
               hooks = {
+                trailing-whitespace = {
+                  enable = true;
+                  entry = "${pkgs.python3Packages.pre-commit-hooks}/bin/trailing-whitespace-fixer";
+                  types = [ "text" ];
+                };
+
+                end-of-file-fixer = {
+                  enable = true;
+                  entry = "${pkgs.python3Packages.pre-commit-hooks}/bin/end-of-file-fixer";
+                  types = [ "text" ];
+                };
+
                 nixpkgs-fmt = {
                   enable = true;
                 };