Signed-off-by: Dmytro Stanchiev <git@dmytros.dev>
This commit is contained in:
2025-10-22 22:27:46 -04:00
commit c05df22a81
8 changed files with 225 additions and 0 deletions

44
devenv.nix Normal file
View File

@@ -0,0 +1,44 @@
{
pkgs,
lib,
config,
inputs,
...
}:
{
# Basic packages
packages = with pkgs; [
git
cargo-watch
cargo-edit
lldb
];
cachix.enable = true;
# Rust language support
languages.rust = {
enable = true;
# Choose your channel
channel = "stable"; # or "nightly", "beta"
# Optional: specify components
components = [
"rustc"
"cargo"
"clippy"
"rustfmt"
"rust-analyzer"
];
};
# Environment variables
env.RUST_BACKTRACE = "1";
# Pre-commit hooks
git-hooks.hooks = {
rustfmt.enable = true;
clippy.enable = true;
};
}