/*
Opinionated shell environment.
*/
{
flake.modules.nixos.shell = {pkgs, ...}: {
environment.systemPackages = with pkgs; [
btop
fd
ripgrep
silicon
sl
];
programs.direnv = {
enable = true;
nix-direnv.enable = true;
silent = true;
};
};
flake.modules.homeManager.shell = {...}: {
programs.bash = {
enable = true;
bashrcExtra = ''
eval "$(direnv hook bash)"
eval "$(starship init bash)"
'';
};
programs.starship = {
enable = true;
settings = {
add_newline = false;
scan_timeout = 10;
};
};
};
}