mirror of
https://github.com/perstarkse/minne.git
synced 2026-07-11 07:12:50 +02:00
dev: toolchain harmonization, additional checks and formatters
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
_: {
|
||||
perSystem =
|
||||
{
|
||||
config,
|
||||
minneCtx,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (minneCtx) rustToolchain;
|
||||
in
|
||||
{
|
||||
treefmt = {
|
||||
projectRootFile = "flake.nix";
|
||||
|
||||
programs = {
|
||||
nixfmt.enable = true;
|
||||
rustfmt = {
|
||||
enable = true;
|
||||
edition = "2024";
|
||||
package = rustToolchain.toolchain;
|
||||
};
|
||||
};
|
||||
|
||||
settings.global.excludes = [
|
||||
"**/.direnv/**"
|
||||
"**/.data/**"
|
||||
"**/database/**"
|
||||
"**/evaluations/cache/**"
|
||||
"**/evaluations/reports/**"
|
||||
"**/html-router/node_modules/**"
|
||||
"**/result/**"
|
||||
"**/target/**"
|
||||
];
|
||||
};
|
||||
|
||||
apps.fmt = {
|
||||
type = "app";
|
||||
program = "${config.treefmt.build.wrapper}/bin/treefmt";
|
||||
meta.description = "Format the repository (rustfmt, nixfmt)";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user