An open API service indexing awesome lists of open source software.

https://github.com/vimkim/dotfiles


https://github.com/vimkim/dotfiles

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# vimkim's dotfiles

A reminder of how to set up my dotfiles on a new machine.

## Step 1: Install Zsh

#### Arch

```bash
sudo pacman -S zsh
```

#### RHEL (Fedora, Rocky, CentOS)

```bash
sudo dnf install zsh
```

#### Ubuntu

```bash
sudo apt install zsh
```

## Step 2: Install Nix Package Manager

```bash
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install)
```

> nix recommended

or,

```bash
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --no-daemon
```

> personal choice, especially inside a container

```bash
. $HOME/.nix-profile/etc/profile.d/nix.sh

nix --extra-experimental-features nix-command --extra-experimental-features flakes profile install nixpkgs#chezmoi
```

Optionally (I do not recommend because sometimes locale breaks),

```bash
# nix --extra-experimental-features nix-command --extra-experimental-features flakes profile install nixpkgs#zsh
```

Note: nix-command and flakes are automatically enabled with chezmoi apply.

```bash
# github handle after --apply
chezmoi init --apply vimkim
```

## Step 3: Install oh-my-zsh

```bash
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
mv .zshrc.pre-oh-my-zsh .zshrc
```

## Step 4: Other nix packages

This might take some time and disk spaces.

```bash
my-nix-install.sh
```

## Step 5: Install nvim dotfiles

```bash
cd $HOME/.config
git clone https://github.com/vimkim/nvim
```

## Step 6: X11 Forwarding

```bash
sudo dnf install xauth
sudo apt install xauth
sudo pacman -S xorg-xauth
```

```bash
# /etc/ssh/sshd_config
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
```