From 4ba7f801c41e6ca89d4e30cb1dccc4300d721170 Mon Sep 17 00:00:00 2001 From: akulij Date: Sat, 15 Feb 2025 16:55:20 +0000 Subject: [PATCH] set env variables in bash --- users/akulij/home.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/users/akulij/home.nix b/users/akulij/home.nix index 8b9c51a..67b0848 100644 --- a/users/akulij/home.nix +++ b/users/akulij/home.nix @@ -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;