From 48675403da753b03311d8128fab8517cb21e3de8 Mon Sep 17 00:00:00 2001 From: Victor Borja Date: Fri, 3 Apr 2026 14:04:41 -0600 Subject: [PATCH 1/3] Add missing treefmt file --- treefmt.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 treefmt.toml diff --git a/treefmt.toml b/treefmt.toml new file mode 100644 index 0000000..d50e8eb --- /dev/null +++ b/treefmt.toml @@ -0,0 +1,3 @@ +[formatter.nixfmt] +command = "nixfmt" +includes = [ "*.nix" ] \ No newline at end of file From 635c4511e6c2d7ccd4d553cfed6cfb54149b2ce5 Mon Sep 17 00:00:00 2001 From: Victor Borja Date: Fri, 3 Apr 2026 14:06:41 -0600 Subject: [PATCH 2/3] Update justfile --- Justfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index e75b202..81db32e 100644 --- a/Justfile +++ b/Justfile @@ -4,5 +4,5 @@ help: ci: nix-unit ./tests.nix -fmt: - nixfmt . +fmt *args: + treefmt {{args}} From e487539b2a577728ba53bed50b906af007dd69a0 Mon Sep 17 00:00:00 2001 From: Victor Borja Date: Fri, 3 Apr 2026 14:09:20 -0600 Subject: [PATCH 3/3] use nixfmt pkg --- shell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index 11a214d..3dfb02a 100644 --- a/shell.nix +++ b/shell.nix @@ -6,6 +6,6 @@ pkgs.mkShell { pkgs.just pkgs.nix-unit pkgs.treefmt - pkgs.nixfmt-tree + pkgs.nixfmt ]; }