# Declarative Install

If you use NixOS, add the following to your environment.systemPackages list:

(import (builtins.fetchTarball "https://github.com/srid/neuron/tarball/master") {})


If you use home-manager, add the above to your home.packages list.

## Pinning versions

It is generally recommended to pin your imports in Nix. The above expression will fetch the then master branch, which is not what you want for reproducibility. Pick a revision from the commit history, and then use it, for example:

(import (builtins.fetchTarball "https://github.com/srid/neuron/tarball/85459ecc4b1e51784db53ed40f3823d3ed980b4e") {})


In the future if you decide to upgrade neuron, simply change the revision hash to a newer one.

Connections
Navigate up