commit c40141dc3139083e0d0388267da9c2961bda242e parent c61fa013521dddd1737416563999d2ec6091f14a Author: Gabriel G. de Brito <me@gboncoffee.dev.br> Date: Fri, 16 Oct 2026 13:16:52 -0300 Setup Nix. Diffstat:
| M | .bashrc | | | 3 | +++ |
| M | .profile | | | 3 | +++ |
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/.bashrc b/.bashrc @@ -51,3 +51,6 @@ if [[ "$INSIDE_EMACS" = 'vterm' ]] \ && [[ -f ${EMACS_VTERM_PATH}/etc/emacs-vterm-bash.sh ]]; then source ${EMACS_VTERM_PATH}/etc/emacs-vterm-bash.sh fi + +# Nix (single-user) +if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then . "$HOME/.nix-profile/etc/profile.d/nix.sh"; fi diff --git a/.profile b/.profile @@ -18,3 +18,6 @@ fi export PATH="$HOME/.local/bin:$HOME/go/bin:$HOME/usr/bin:$PATH" export EDITOR='emacs' + +if [ -e /home/gabriel/.nix-profile/etc/profile.d/nix.sh ]; then . /home/gabriel/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer +export XDG_DATA_DIRS="$HOME/.nix-profile/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}"