40 lines
491 B
Nix
40 lines
491 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
inputs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
languages.rust.enable = true;
|
|
git-hooks.hooks = {
|
|
clippy = {
|
|
enable = true;
|
|
settings.allFeatures = true;
|
|
};
|
|
treefmt.enable = true;
|
|
};
|
|
|
|
treefmt = {
|
|
enable = true;
|
|
config.programs = {
|
|
nixfmt.enable = true;
|
|
rustfmt.enable = true;
|
|
};
|
|
};
|
|
|
|
packages = with pkgs; [
|
|
git
|
|
just
|
|
|
|
ffprobe
|
|
|
|
opencode
|
|
];
|
|
|
|
outputs = {
|
|
rust-app = config.languages.rust.import ./. { };
|
|
};
|
|
}
|