mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-06 04:40:55 -08:00
This implicates a change from nixpkgs-fmt to nixfmt. Nixfmt will become the new standard on nix formatting, sanctioned by the nixpkgs. To verify that these changes are purely in whitespace, but not semantic: git diff --ignore-all-space -w HEAD^! That will only show newline changes, make the diffing somewhat easier. Signed-off-by: wucke13 <wucke13+github@gmail.com>
29 lines
560 B
Nix
29 lines
560 B
Nix
{ pkgs, ... }:
|
|
{
|
|
# Used to find the project root
|
|
projectRootFile = "flake.nix";
|
|
programs.nixfmt.enable = true;
|
|
programs.prettier = {
|
|
enable = true;
|
|
includes = [
|
|
"*.css"
|
|
"*.html"
|
|
"*.js"
|
|
"*.json"
|
|
"*.json5"
|
|
"*.md"
|
|
"*.mdx"
|
|
"*.toml"
|
|
"*.yaml"
|
|
"*.yml"
|
|
];
|
|
excludes = [ "supply-chain/*" ];
|
|
settings = {
|
|
plugins = [
|
|
"${pkgs.nodePackages.prettier-plugin-toml}/lib/node_modules/prettier-plugin-toml/lib/index.js"
|
|
];
|
|
};
|
|
};
|
|
programs.rustfmt.enable = true;
|
|
}
|