about summary refs log tree commit diff
path: root/checks.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-05-25 22:16:47 +0300
committerAzat Bahawi <azat@bahawi.net>2024-05-25 22:16:47 +0300
commit364e8a98ad25127f2a51696ec03729e3a783044f (patch)
tree1ac46553d1dca1259da539eddc7db100eaf5c137 /checks.nix
parent2024-05-05 (diff)
2024-05-25
Diffstat (limited to '')
-rw-r--r--checks.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/checks.nix b/checks.nix
index 3570574..511b658 100644
--- a/checks.nix
+++ b/checks.nix
@@ -7,7 +7,7 @@
 {
   preCommit = inputs.git-hooks.lib.${system}.run {
     src = builtins.path {
-      name = "nixfiles";
+      name = "src";
       path = ./.;
     };
     hooks = {
@@ -22,8 +22,19 @@
         entry = "${pkgs.prometheus.cli}/bin/promtool check rules";
         files = "(?x)^(modules/monitoring/rules/.*\.yaml)$";
       };
+      trim-trailing-whitespace = {
+        enable = true;
+        excludes = [ ".*\.patch" ];
+      };
+      check-added-large-files.enable = true;
+      check-case-conflicts.enable = true;
+      check-symlinks.enable = true;
       deadnix.enable = true;
+      detect-private-keys.enable = true;
       editorconfig-checker.enable = true;
+      fix-byte-order-marker.enable = true;
+      flake-checker.enable = true;
+      nil.enable = true;
       prettier.enable = true;
       shellcheck.enable = true;
       shfmt.enable = true;

Consider giving Nix/NixOS a try! <3