We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae0f24b commit 4160ad4Copy full SHA for 4160ad4
dogfood/main.tf
@@ -71,8 +71,10 @@ resource "coder_agent" "dev" {
71
sudo service docker start
72
73
# Install Nix into our bash profile so `nix-shell`, `nix-build, and `nix` are available
74
- echo '. /home/coder/.nix-profile/etc/profile.d/nix.sh' >> /home/coder/.bashrc
75
bash /opt/nix/install --no-daemon
+ if ! grep -q '. ~/.nix-profile/etc/profile.d/nix.sh' ~/.bashrc; then
76
+ echo '. ~/.nix-profile/etc/profile.d/nix.sh' >> ~/.bashrc
77
+ fi
78
79
DOTFILES_URI=${var.dotfiles_uri}
80
if [ -n "$DOTFILES_URI" ]; then
0 commit comments