Skip to content

m-wynn/dotfiles

Repository files navigation

Setup

Place this repository in ~/.config/nixpkgs

git clone [email protected]:m-wynn/dotfiles.git ~/.config/nixpkgs

or

rm -r ~/.config/nixpkgs
ln -s ~/dotfiles ~/.confix/nixpkgs

Install nix

sh <(curl -L https://nixos.org/nix/install)
. ~/.nix-profile/etc/profile.d/nix.sh

Enable Flakes

nix-env -iA nixpkgs.nixFlakes
echo "experimental-features = nix-command flakes" | sudo tee /etc/nix/nix.conf 

Add cachix

nix-env -iA cachix -f https://cachix.org/api/v1/install
cahix use nix-community

Install home-manager

nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
nix-shell '<home-manager>' -A install

Switch to the proper home-manager config

E.g. for the WSL profile:

 home-manager switch --flake ~/.config/nixpkgs/\#wsl -v