formatting things and pre commit hooks

This commit is contained in:
Schrottkatze 2023-11-20 12:59:32 +01:00
commit b07eb248f1
4 changed files with 17 additions and 10 deletions

View file

@ -25,13 +25,19 @@
default = devenv.lib.mkShell {
inherit inputs pkgs;
modules = [
({pkgs, config, ...}: {
languages.rust = {
enable = true;
channel = "nightly";
};
packages = [];
})
({pkgs, config, ...}: {
languages.rust = {
enable = true;
channel = "nightly";
};
pre-commit.hooks = {
clippy.enable = true;
rustfmt.enable = true;
};
packages = [];
})
];
};
});