- Install nix. Note for future Simon: With nix 2.4 this feature will be moved upstream
sh <(curl https://abathur-nix-install-tests.cachix.org/serve/yihf8zbs0jwph2rs9qfh80dnilijxdi2/install) --tarball-url-prefix https://abathur-nix-install-tests.cachix.org/serve
- Clone the repository into
~/simontheleg/
git clone git@github.com:SimonTheLeg/dotfiles.git ~/simontheleg/dotfiles
- Add a channel as nixpkgs. This is mainly to make home-manager happy. It does not server any further purpose, as all channels used are pinned in
home.nix
:
nix-channel --add https://channels.nixos.org/nixos-21.11 nixpkgs
nix-channel --update
- Symlink home manager config and Install Home Manager
mkdir -p ${HOME}/.config/nixpkgs/
ln -s -f ~/simontheleg/dotfiles/home.nix ${HOME}/.config/nixpkgs/home.nix
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --update
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
nix-shell '<home-manager>' -A install
- Start home-manager environment generation
home-manager switch