From fe65a36685c61c82aeceab4b2eddee8fbf31940b Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Fri, 4 Apr 2025 17:43:06 +0000 Subject: [PATCH] Source nix profile after installing nix --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 0e87d85..f5640c1 100755 --- a/install.sh +++ b/install.sh @@ -15,11 +15,13 @@ echo "Installing dotfiles..." if [ "${CODER_TEMPLATE_TYPE}" == "Devcontainer" ]; then installers/install-nix.sh installers/install-nix-packages-flake.sh + . ~/.nix-profile/etc/profile.d/nix.sh elif [ "${CODER_OS_FAMILY:-}" == "Ubuntu" ]; then echo "Detected OS as Ubuntu, using apt"; sudo apt-get update; sudo apt-get install -y stow; installers/install-nix.sh + . ~/.nix-profile/etc/profile.d/nix.sh elif [ -f /etc/os-release ]; then echo "Idenitfying OS to install GNU stow..." if grep -q -i debian /etc/os-release; then