mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 23:55:37 +00:00
28 lines
378 B
Nix
28 lines
378 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
|
|
options.rust.enable = lib.mkEnableOption "Rust programming language.";
|
|
|
|
config = lib.mkIf config.rust.enable {
|
|
|
|
home-manager.users.${config.user} = {
|
|
|
|
programs.fish.shellAbbrs = {
|
|
ca = "cargo";
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
cargo
|
|
rustc
|
|
clippy
|
|
gcc
|
|
];
|
|
};
|
|
};
|
|
}
|