dotfiles/modules/common/programming/rust.nix

28 lines
378 B
Nix
Raw Permalink Normal View History

2024-04-20 13:42:06 +00:00
{
config,
pkgs,
lib,
...
}:
{
2023-11-02 02:13:49 +00:00
options.rust.enable = lib.mkEnableOption "Rust programming language.";
config = lib.mkIf config.rust.enable {
home-manager.users.${config.user} = {
2024-04-20 13:42:06 +00:00
programs.fish.shellAbbrs = {
ca = "cargo";
};
2023-11-02 02:13:49 +00:00
2024-04-20 13:42:06 +00:00
home.packages = with pkgs; [
cargo
rustc
clippy
gcc
];
2023-11-02 02:13:49 +00:00
};
};
}