aboutsummaryrefslogtreecommitdiffhomepage
path: root/treefmt.nix
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-15 09:55:20 +0900
committernsfisis <nsfisis@gmail.com>2026-08-15 09:55:41 +0900
commit8bb270de6835a00ac3413988c3955c19cfa0d97e (patch)
treee51e7f4529d66f3703994db399672b9329139e1f /treefmt.nix
parent592ab8b1a2d73a1f77db8a7b7e17238ce3577030 (diff)
downloadphp-shirabe-8bb270de6835a00ac3413988c3955c19cfa0d97e.tar.gz
php-shirabe-8bb270de6835a00ac3413988c3955c19cfa0d97e.tar.zst
php-shirabe-8bb270de6835a00ac3413988c3955c19cfa0d97e.zip
build(nix): add a Nix flake providing the dev shell and formatters
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'treefmt.nix')
-rw-r--r--treefmt.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/treefmt.nix b/treefmt.nix
new file mode 100644
index 00000000..b5a4ab9b
--- /dev/null
+++ b/treefmt.nix
@@ -0,0 +1,8 @@
+{ ... }:
+{
+ projectRootFile = "flake.nix";
+
+ programs.nixfmt.enable = true;
+ programs.rustfmt.enable = true;
+ # TODO: add php formatter
+}