nix-conf/modules/home-manager/bash/default.nix
2024-04-11 17:58:40 +05:30

19 lines
325 B
Nix

{
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)"
'';
};
};
}