Files
2025-07-06 08:48:18 +02:00

34 lines
551 B
Nix

{ rustToolchain, cargoToml }:
{ pkgs, ... }:
{
# rust
programs.rustfmt = {
enable = true;
package = rustToolchain;
edition = cargoToml.workspace.package.edition or cargoToml.package.edition;
};
# nix
programs.nixfmt.enable = true;
# toml
programs.taplo.enable = true;
# markdown, yaml, etc.
programs.prettier = {
enable = true;
settings = {
trailingComma = "all";
semi = true;
printWidth = 120;
};
};
programs.typos = {
enable = true;
includes = [
"*.rs"
];
};
}