dotfiles/modules/common/programming/rust.nix

18 lines
300 B
Nix

{ config, pkgs, lib, ... }: {
options.rust.enable = lib.mkEnableOption "Rust programming language.";
config = lib.mkIf config.rust.enable {
home-manager.users.${config.user} = {
home.packages = with pkgs; [ cargo rustc gcc ];
programs.fish.shellAbbrs = { };
};
};
}