feat(nix): migrate MacOS settings to nix-darwin

This commit is contained in:
Stefan Imhoff
2024-07-31 16:45:53 +02:00
parent c5be8e73b6
commit a635371714
13 changed files with 168 additions and 209 deletions

5
scripts/deno.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
asdf plugin add deno
asdf install deno latest
asdf global deno latest

5
scripts/golang.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
asdf plugin add golang
asdf install golang latest
asdf global golang latest

36
scripts/init.sh Executable file
View File

@@ -0,0 +1,36 @@
#!/bin/sh
echo "Installing asdf plugins and versions"
sudo -v
# Neovim
echo "Installing Neovim"
source ./neovim.sh
# Node.js
echo "Installing Node.js"
source ./nodejs.sh
# Deno
echo "Installing Deno"
source ./deno.sh
# Python
echo "Installing Python"
source ./python.sh
# Lua
echo "Installing Lua"
source ./lua.sh
# Rust
echo "Installing Rust"
source ./rust.sh
# Ruby
echo "Installing Ruby"
source ./ruby.sh
# Golang
echo "Installing Go"
source ./golang.sh

9
scripts/lua.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
asdf plugin add lua
asdf install lua 5.1
asdf install lua latest
asdf global lua latest
luarocks install --server=https://luarocks.org/dev luaformatter
sudo luarocks install --lua-version 5.1 tiktoken_core

4
scripts/neovim.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
asdf plugin add neovim
nvim --headless "+Lazy! sync" +qa

6
scripts/nodejs.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
asdf plugin add nodejs
asdf install nodejs 16.14.2
asdf install nodejs 18.12.1
asdf global nodejs 18.14.2

5
scripts/python.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
asdf plugin add python
asdf install python latest
asdf global python latest

5
scripts/ruby.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
asdf plugin add ruby
asdf install ruby latest
asdf global ruby latest

9
scripts/rust.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
asdf plugin add rust
asdf install rust latest
asdf global rust latest
cargo install stylua
cargo install nixpkgs-fmt
cargo install code2prompt