2024-04-20 09:42:06 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2023-11-01 22:13:49 -04:00
|
|
|
|
|
|
|
options.rust.enable = lib.mkEnableOption "Rust programming language.";
|
|
|
|
|
|
|
|
config = lib.mkIf config.rust.enable {
|
|
|
|
|
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
|
2024-04-20 09:42:06 -04:00
|
|
|
programs.fish.shellAbbrs = {
|
|
|
|
ca = "cargo";
|
|
|
|
};
|
2023-11-01 22:13:49 -04:00
|
|
|
|
2024-04-20 09:42:06 -04:00
|
|
|
home.packages = with pkgs; [
|
2025-01-20 22:35:40 -05:00
|
|
|
gcc
|
2024-04-20 09:42:06 -04:00
|
|
|
rustc
|
2025-01-20 22:35:40 -05:00
|
|
|
cargo
|
|
|
|
cargo-watch
|
2024-04-20 09:42:06 -04:00
|
|
|
clippy
|
2025-01-20 22:35:40 -05:00
|
|
|
rustfmt
|
|
|
|
pkg-config
|
|
|
|
openssl
|
2024-04-20 09:42:06 -04:00
|
|
|
];
|
2023-11-01 22:13:49 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|