Source nix profile after installing nix

This commit is contained in:
anmiller 2025-03-11 13:48:35 +00:00
parent db92ba133b
commit 4afcb4523a

View File

@ -14,11 +14,13 @@ echo "Installing dotfiles..."
if [ "${CODER_TEMPLATE_TYPE}" == "Devcontainer" ]; then if [ "${CODER_TEMPLATE_TYPE}" == "Devcontainer" ]; then
installers/install-nix.sh installers/install-nix.sh
installers/install-nix-packages-flake.sh installers/install-nix-packages-flake.sh
. ~/.nix-profile/etc/profile.d/nix.sh
elif [ "${CODER_OS_FAMILY:-}" == "Ubuntu" ]; then elif [ "${CODER_OS_FAMILY:-}" == "Ubuntu" ]; then
echo "Detected OS as Ubuntu, using apt"; echo "Detected OS as Ubuntu, using apt";
sudo apt-get update; sudo apt-get update;
sudo apt-get install -y stow; sudo apt-get install -y stow;
installers/install-nix.sh installers/install-nix.sh
. ~/.nix-profile/etc/profile.d/nix.sh
elif [ -f /etc/os-release ]; then elif [ -f /etc/os-release ]; then
echo "Idenitfying OS to install GNU stow..." echo "Idenitfying OS to install GNU stow..."
if grep -q -i debian /etc/os-release; then if grep -q -i debian /etc/os-release; then