Skip to content

Commit

Permalink
feat(nix): add formatter (#867)
Browse files Browse the repository at this point in the history
I believe there should be some defined formatter, otherwise it's not clear
what standards to follow when cotributing to nix files in this repo.

`nixfmt-classic` produces no changes on the current flake.nix.

This is contrary to #736 which introduced a bunch of changes and was rejected.
  • Loading branch information
konradmalik authored Jan 3, 2025
1 parent 7e7deaa commit a0274b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
];
packages = with pkgs; [ rust-analyzer-nightly ];
};

formatter = pkgs.nixfmt-classic;
};
};
}

0 comments on commit a0274b1

Please sign in to comment.