home: bash nonlogin path fix test

This commit is contained in:
NullBite 2024-04-08 10:59:56 -04:00
parent 4d55372ef3
commit fe53bca5a6
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -45,6 +45,13 @@ in
programs.bash = {
enable = lib.mkDefault true;
bashrcExtra = ''
#
if ! [[ $- == *i* ]] && ! shopt -q login_shell && [[ -z "''${__NIXFILES_NOLOGIN_PATH:+x}" ]] ; then
PATH="${config.home.profileDirectory}/bin''${PATH:+:''${PATH}}" && export PATH
fi
__NIXFILES_NOLOGIN_PATH=1 && export __NIXFILES_NOLOGIN_PATH
'';
initExtra = ''
export HOME_MANAGER_MANAGED=true;
[[ -e ~/dotfiles/shell/.bashrc ]] && . ~/dotfiles/shell/.bashrc ]]