nix-conf/modules/home-manager/bash/default.nix

20 lines
325 B
Nix
Raw Normal View History

2024-04-11 12:28:40 +00:00
{
config,
lib,
...
}: {
options = {
bash.enable = lib.mkEnableOption "enable bash";
};
config = lib.mkIf config.bash.enable {
programs.bash = {
enable = false;
bashrcExtra = ''
. ~/.bashrc
eval "$(direnv hook bash)"
eval "$(starship init bash)"
'';
};
};
}