set env variables in bash

This commit is contained in:
akulij 2025-02-15 16:55:20 +00:00
parent 36d841eeeb
commit 4ba7f801c4

View File

@ -10,6 +10,20 @@
userEmail = "aakulij@gmail.com";
};
programs.bash = {
enable = true;
initExtra = ''
# include .profile if it exists
# necessary to import env variables set by home-manager
[[ -f ~/.profile ]] && . ~/.profile
'';
};
home.sessionVariables = {
EDITOR = "nvim";
};
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;