From ad32539742db381c279ee5928d9d4a8a2dee2756 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Thu, 1 Aug 2024 09:02:40 +0800 Subject: [PATCH] bahaghari/shell: add treefmt config and replace nixpkgs-fmt with the official formatter --- subprojects/bahaghari/shell.nix | 2 +- subprojects/bahaghari/treefmt.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 subprojects/bahaghari/treefmt.toml diff --git a/subprojects/bahaghari/shell.nix b/subprojects/bahaghari/shell.nix index b21dfbd4..c025b6cd 100644 --- a/subprojects/bahaghari/shell.nix +++ b/subprojects/bahaghari/shell.nix @@ -14,6 +14,6 @@ mkShell { npins treefmt - nixpkgs-fmt + nixfmt-rfc-style ]; } diff --git a/subprojects/bahaghari/treefmt.toml b/subprojects/bahaghari/treefmt.toml new file mode 100644 index 00000000..9afb623c --- /dev/null +++ b/subprojects/bahaghari/treefmt.toml @@ -0,0 +1,3 @@ +[formatter.nix] +command = "nixfmt" +includes = [ "*.nix" ]