Skip to content

Jak-Ch-ll/.dotfiles

Repository files navigation

This is my (currently experimental) user setup with Nix and Home Manager

Prerequisites

Have curl installed and systemd enabled

Debian + WSL

1. Install the necessary packages:

sudo apt update && sudo apt install curl

2. Activate systemd support (Docs)

echo "[boot]\nsystemd=true" > sudo /etc/wsl.conf

3. (Optional) Deactivate Windows PATH

echo "\n[interop]\nappendWindowsPath=False" >> sudo /etc/wsl.conf

This avoids a path polleted with binaries installed on Windows. Any needed bin dir is added back in home.nix

4. Restart WSL

wsl.exe --shutdown

Setup

  1. Install Nix via the Determinate Installer (Alternativly use the offical installer but then you have to enable flakes and nix-commands afterwards)

Note: We currently don't want to go above v2.18.1 because of #4692

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix/tag/v0.15.1 | sh -s -- install

Restart shell

  1. Delete (and backup if needed) the following files
rm ~/.profile ~/.bashrc
  1. Run Home Manager with Flakes (See manual)
nix run home-manager/master -- switch --flake "github:Jak-Ch-ll/.dotfiles/nix?dir=.nix"
  1. Clone this repo
git clone --branch nix https://github.com/Jak-Ch-ll/.dotfiles.git
  1. Restart shell

Postinstall

  • tmux will automatically start, press C-b to install the plugins

Apply changes

To apply configuration changes just run hms from anywhere

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks