slim version

This commit is contained in:
2026-04-20 16:34:39 +02:00 Verified
parent d8d9269faf
commit 997f86761a
2 changed files with 36 additions and 88 deletions
+19 -2
View File
@@ -31,12 +31,29 @@ resource "coder_agent" "main" {
startup_script = <<-EOT
set -e
# Prepare user home with default files on first start.
# 1. Standard home init
if [ ! -f ~/.init_done ]; then
cp -rT /etc/skel ~
# 2. Install GHCup & Haskell
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | \
BOOTSTRAP_HASKELL_NONINTERACTIVE=1 \
BOOTSTRAP_HASKELL_GHC_VERSION=latest \
BOOTSTRAP_HASKELL_CABAL_VERSION=latest \
BOOTSTRAP_HASKELL_HLS_VERSION=latest \
sh
# 3. Install Scala
curl -fL https://github.com/coursier/launchers/raw/master/cs-x86_64-pc-linux.gz | gzip -d > cs
chmod +x cs
./cs setup --yes
rm cs
# 4. Create Python Venv
python3 -m venv ~/.venv
touch ~/.init_done
fi
EOT
# These environment variables allow you to make Git commits right away after creating a