Files
rosenpass/treefmt.nix
T
wucke13 696e2ba7fc refactor: clean-up Nix code
- `nix-vm-test` does not use `flake-utils` as input anymore, so no
  reason to override it.
- `pkgs.system` was deprecated, now `pkgs.stdenv.hostPlatform.system` is
  to be used. This is more precise, in particular for cross compilation.
- Avoid shadowing of symbols in `relase-package.nix` to make the code
  clearer.
- `lib.trivial.importTOML` is the canonical way to read and parse a
  TOML file.
- `toString` is in the prelude, no reason to write `builtins.toString`.
- Remove some unnecessary parentheses.
- Remove unused attributes in a function arguments.

Signed-off-by: wucke13 <wucke13+github@gmail.com>
2026-07-16 12:31:58 +02:00

34 lines
519 B
Nix

{ ... }:
{
# 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"
"*.yaml"
"*.yml"
];
excludes = [ "supply-chain/*" ];
};
programs.taplo = {
enable = true;
includes = [
"*.toml"
];
};
programs.rustfmt = {
enable = true;
includes = [
"*.rs"
];
};
}