-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-common.sh
executable file
·69 lines (52 loc) · 1.83 KB
/
setup-common.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#################-- Stuff we're going to install --#################
####################################################################
brew_stuff=(
)
cargo_binstall_stuff=(
"cargo-make"
"cargo-update"
)
pipx_stuff=(
"grip" # preview github-flavored markdown
"howdoi"
"poetry"
)
####################################################################
####################################################################
# Nix + nix stuff
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm --extra-conf "trusted-users = $(id -n -u)"
source /etc/profile.d/nix.sh # Load the nix profile
nix run nixpkgs#cachix use nix-community # binary cache that has neovim-nightly
nix run nixpkgs#cachix use d2kdot # binary cache that covers non-overlap between cache.nixos.org and d2kcommon
nix run nixpkgs#just install-flake
# Mise
mise install
# Tailscale
curl -fsSL https://tailscale.com/install.sh | sh
# Rust
rustup default stable
## One tool to get all (most) of those binaries without compiling
cargo install cargo-binstall
## Cargo stuff
for stuff in "${cargo_binstall_stuff[@]}"; do
cargo binstall "${stuff}" --no-confirm
done
# Pipx stuff
for stuff in "${pipx_stuff[@]}"; do
pipx install "${stuff}"
done
# Brew
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
## Taps
brew tap isacikgoz/taps
## Brew stuff
for stuff in "${brew_stuff[@]}"; do
brew install "${stuff}"
done
# Shell
## ohmyzsh for a _delightful_ ZSH experience. In all seriousness consider alternatives like prezto
git clone https://github.com/ohmyzsh/ohmyzsh ~/.oh-my-zsh
echo "Done installing base layer. Next steps:"
echo "1. GUI? Install \`.#d2gui\`"
echo "2. Install dotfiles with \`dotter\`"
echo "3. Setup tailscale with \`sudo tailscale up\`"