Skip to content

Commit 91c742f

Browse files
committed
Add formatter to flake.nix
1 parent 9302fa2 commit 91c742f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flake.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@
154154
};
155155
version = builtins.substring 0 8 self.lastModifiedDate;
156156
in {
157+
# Formatter for your nix files, available through 'nix fmt'
158+
# Other options beside 'alejandra' include 'nixpkgs-fmt'
159+
formatter = pkgs.alejandra;
160+
157161
packages = rec {
158162
tclipd = pkgs.buildGoApplication {
159163
pname = "tclipd";

0 commit comments

Comments
 (0)