dotfiles/modules/common/programming/rust.nix

18 lines
321 B
Nix
Raw Normal View History

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