summaryrefslogtreecommitdiff
path: root/dev/treefmt.nix
diff options
context:
space:
mode:
Diffstat (limited to 'dev/treefmt.nix')
-rw-r--r--dev/treefmt.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/dev/treefmt.nix b/dev/treefmt.nix
new file mode 100644
index 0000000..9029cf0
--- /dev/null
+++ b/dev/treefmt.nix
@@ -0,0 +1,19 @@
+{ inputs, ... }:
+{
+ imports = [ inputs.treefmt-nix.flakeModule ];
+
+ perSystem = {
+ treefmt = {
+ projectRootFile = ".git/config";
+
+ # TODO: add actionlint
+ # https://github.com/numtide/treefmt-nix/pull/146
+ programs = {
+ deadnix.enable = true;
+ just.enable = true;
+ nixfmt-rfc-style.enable = true;
+ statix.enable = true;
+ };
+ };
+ };
+}