Skip to content

Instantly share code, notes, and snippets.

@jamesward
Created January 17, 2024 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesward/82326dc025f0c11ccb0e42d9c2513a94 to your computer and use it in GitHub Desktop.
Save jamesward/82326dc025f0c11ccb0e42d9c2513a94 to your computer and use it in GitHub Desktop.
Nix Sane Install
  1. Get the latest release: https://releases.nixos.org/?prefix=nix/
  2. Extract the release
  3. Setup /nix
    sudo mkdir /nix
    sudo chown $USER /nix
    
  4. Run installer
    NIX_INSTALLER_NO_MODIFY_PROFILE=true ./install
    
  5. Setup shell
    source ~/.nix-profile/etc/profile.d/nix.sh
    
  6. Add channels
    nix-channel --add https://nixos.org/channels/nixpkgs-unstable
    nix-channel --update
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment