refactor: source Nix profile after installation to ensure proper environment setup
All checks were successful
Nix Format Check / check-format (push) Successful in 40s

This commit is contained in:
Menno van Leeuwen 2025-01-22 15:58:31 +01:00
parent 089010b33c
commit c26a952af9
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -140,6 +140,7 @@ install_nix() {
die "Failed to download Nix installer" die "Failed to download Nix installer"
sh install-nix.sh install || die "Failed to install Nix" sh install-nix.sh install || die "Failed to install Nix"
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh || die "Failed to source Nix profile"
log_success "Nix has been installed. Please open a new shell and re-run the script." log_success "Nix has been installed. Please open a new shell and re-run the script."
log_info "'~/dotfiles/setup.sh --continue' to continue setup." log_info "'~/dotfiles/setup.sh --continue' to continue setup."