dotfiles/modules/common/programming/rust.nix

18 lines
296 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} = {
home.packages = with pkgs; [ cargo rustc ];
programs.fish.shellAbbrs = { };
};
};
}