summaryrefslogtreecommitdiff
path: root/pre-commit.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pre-commit.nix')
-rw-r--r--pre-commit.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/pre-commit.nix b/pre-commit.nix
new file mode 100644
index 0000000..b70ceba
--- /dev/null
+++ b/pre-commit.nix
@@ -0,0 +1,15 @@
+{
+ perSystem = {config, ...}: {
+ pre-commit.settings.hooks = {
+ actionlint.enable = true;
+
+ treefmt = {
+ enable = true;
+ package = config.treefmt.build.wrapper;
+ };
+
+ nil.enable = true;
+ statix.enable = true;
+ };
+ };
+}