Skip to content
pjan vandaele edited this page Jan 18, 2018 · 4 revisions

Getting started

  1. clone this repo & its submodules recursively
  2. change directory to nixpkgs, add the channels remote, and checkout the nixpkgs-unstable branch
    git remote add channels https://github.com/nixos/nixpkgs-channels
    git remote update channels
    git checkout nixpkgs-channels
    
  3. for each of the submodules, add the forks as remotes:
    git remote add pjan [email protected]:pjan/_NAME_.git
    
  4. make nix-install to install nix
  5. (new terminal window after 2) make darwin-install to install nix-darwin
  6. reload (or new terminal window)
  7. make update to install & update all the things

Uninstalling all of nix

sudo rm -rf /nix
sudo rm -rf /etc/nix /nix /var/root/.nix-profile /var/root/.nix-defexpr /var/root/.nix-channels $HOME/.nix-profile $HOME/.nix-defexpr $HOME/.nix-channels
sudo mv /etc/profile.backup-before-nix /etc/profile
sudo mv /etc/bashrc.backup-before-nix /etc/bashrc
sudo mv /etc/zshrc.backup-before-nix /etc/zshrc
sudo launchctl remove org.nixos.nix-daemon
sudo launchctl remove org.nixos.activate-system
sudo launchctl remove org.nixos.collect-garbage 
Clone this wiki locally