This is my (currently experimental) user setup with Nix and Home Manager
Have curl
installed and systemd
enabled
sudo apt update && sudo apt install curl
2. Activate systemd support (Docs)
echo "[boot]\nsystemd=true" > sudo /etc/wsl.conf
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
wsl.exe --shutdown
- 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
- Delete (and backup if needed) the following files
rm ~/.profile ~/.bashrc
- Run Home Manager with Flakes (See manual)
nix run home-manager/master -- switch --flake "github:Jak-Ch-ll/.dotfiles/nix?dir=.nix"
- Clone this repo
git clone --branch nix https://github.com/Jak-Ch-ll/.dotfiles.git
- Restart shell
- tmux will automatically start, press
C-b
to install the plugins
To apply configuration changes just run hms
from anywhere