Skip to content

Commit

Permalink
update provisioner inline script
Browse files Browse the repository at this point in the history
  • Loading branch information
geloman committed Sep 24, 2024
1 parent 698cb6a commit 01a4eef
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packer/main.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ build {
provisioner "shell" {
inline = [
"apt update -y && apt upgrade -y",
"apt-get install -y software-properties-common",
"add-apt-repository ppa:neovim-ppa/stable",
"apt install -y zsh neovim eza fzf ripgrep fd-find bat git-delta gcc tar unzip curl wget neofetch",
"update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60",
"update-alternatives --set editor /usr/bin/nvim",
"apt install -y zsh eza fzf ripgrep fd-find bat git-delta gcc tar unzip curl wget neofetch",
"useradd --create-home --groups sudo --shell /usr/bin/zsh geloman && passwd --delete geloman",
"mkdir -p /home/geloman/.config /home/geloman/.personal /home/geloman/.development",
"git clone --depth 1 https://github.com/geloman-likes-rust/dotfiles /home/geloman/.dotfiles",
Expand All @@ -34,6 +30,9 @@ build {
"ln -s /home/geloman/.dotfiles/zsh/.zshrc /home/geloman/.zshrc",
"ln -s /home/geloman/.dotfiles/nvim /home/geloman/.config/",
"ln -s /home/geloman/.dotfiles/tmux/.tmux.conf /home/geloman/.tmux.conf",
"curl -s -JLO https://github.com/neovim/neovim/releases/download/stable/nvim-linux64.tar.gz",
"tar xzf nvim-linux64.tar.gz && rm -rdf nvim-linux64.tar.gz",
"mv nvim-linux64/bin/nvim /usr/local/bin/nvim && rm -rdf nvim-linux64",
"su geloman -c \"nvim --headless '+Lazy! restore' +qa\"",
"chown -R geloman:geloman /home/geloman"
]
Expand Down

0 comments on commit 01a4eef

Please sign in to comment.