git clone [email protected]:m-wynn/dotfiles.git ~/.config/nixpkgs
or
rm -r ~/.config/nixpkgs
ln -s ~/dotfiles ~/.confix/nixpkgs
sh <(curl -L https://nixos.org/nix/install)
. ~/.nix-profile/etc/profile.d/nix.sh
nix-env -iA nixpkgs.nixFlakes
echo "experimental-features = nix-command flakes" | sudo tee /etc/nix/nix.conf
nix-env -iA cachix -f https://cachix.org/api/v1/install
cahix use nix-community
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
E.g. for the WSL profile:
home-manager switch --flake ~/.config/nixpkgs/\#wsl -v