NixOS and Home Manager config
1{ ... }: {
2 programs.bash = {
3 enable = true;
4 # Some distros (mainly the Fedora/RHEL/etc family) have an optional /etc/bashrc for system wide bash config that a
5 # user can source if wanted. Source it here if it exists.
6 bashrcExtra = ''
7 # Source global definitions
8 if [ -f /etc/bashrc ]; then
9 . /etc/bashrc
10 fi
11 '';
12 };
13}