Skip to content

Commit 6e20872

Browse files
committed
just: add recipe nix-format
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent b202e65 commit 6e20872

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

justfile

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ alias linter-fix := clang-format
1818
alias trace-process := process-trace
1919
alias test := src-test
2020
alias download-translations := translations-download
21+
alias nixfmt := nix-format
2122

2223
# Build the translations
2324
[group('translations')]
@@ -175,6 +176,11 @@ process-trace:
175176
generate-icons:
176177
cd icons &&./generate-icons.sh
177178

179+
# Format the nix files
180+
[group('linter')]
181+
nix-format:
182+
nix-shell -p fd nixfmt-rfc-style --run "fd -e nix --exec-batch nixfmt"
183+
178184
# Format all justfiles
179185
[group('linter')]
180186
just-format:

0 commit comments

Comments
 (0)