Skip to content

Commit

Permalink
update user_data
Browse files Browse the repository at this point in the history
  • Loading branch information
geloman committed Sep 24, 2024
1 parent d0c42f0 commit 64ea969
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ resource "digitalocean_droplet" "droplet" {
region = var.droplet_region
size = var.droplet_size
ssh_keys = var.droplet_ssh_keys
user_data = <<-EOT
user_data = <<-EOF
#!/bin/sh
apt update -y && apt upgrade -y
apt install -y zsh eza
# apt install -y zsh eza fzf ripgrep fd-find bat git-delta gcc tar unzip curl wget neofetch
apt install -y zsh neovim eza fzf ripgrep fd-find bat git-delta gcc tar unzip curl wget neofetch
useradd --create-home --groups sudo,docker --shell /usr/bin/zsh geloman
mkdir -p /home/geloman/{.config,.personal,.development}
git clone --depth 1 https://github.com/geloman-likes-rust/dotfiles /home/geloman/.dotfiles
git clone --depth 1 https://github.com/ohmyzsh/ohmyzsh.git /home/geloman/.oh-my-zsh
ln /home/geloman/.dotfiles/zsh/.zshrc /home/geloman/.zshrc
ln /home/geloman/.dotfiles/nvim /home/geloman/.config/
ln /home/geloman/.dotfiles/tmux/.tmux.conf /home/geloman/.tmux.conf
# nvim --headless "+Lazy! restore" +qa
EOT
nvim --headless "+Lazy! restore" +qa
EOF
}

0 comments on commit 64ea969

Please sign in to comment.