This repository has been archived on 2024-05-02. You can view files and clone it, but cannot push or open issues or pull requests.
home-manager-flake/modules/development/rust.nix

15 lines
289 B
Nix

{ pkgs, config, lib, ... }: {
options = {
development.rust.enable = lib.mkEnableOption "rust development";
};
config = lib.mkIf config.development.rust.enable {
home.packages = with pkgs; [
rustc
cargo
rust-analyzer
clippy
rustfmt
];
};
}