https://github.com/vimkim/dotfiles
https://github.com/vimkim/dotfiles
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vimkim/dotfiles
- Owner: vimkim
- Created: 2023-11-19T17:09:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-10-03T05:55:28.000Z (9 months ago)
- Last Synced: 2025-10-03T07:23:34.637Z (9 months ago)
- Language: Python
- Size: 649 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```