dotfiles/modules/common/programming/rust.nix
2023-11-01 22:13:49 -04:00

18 lines
296 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 ];
programs.fish.shellAbbrs = { };
};
};
}