mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-24 01:24:57 +03:00
docs: split out "Install nix" section
This commit is contained in:
parent
eef8fb1170
commit
92d025e1ae
@ -3,20 +3,8 @@
|
||||
{{#include ../warning.md}}
|
||||
|
||||
This guide walks you through the process of setting up nix for your project using dream2nix. This will allow your project's build and dev-environment to be reproduced by machines of other developers or CI systems with high accuracy.
|
||||
|
||||
## Install nix
|
||||
If you don't have nix already, check out [nixos.org/download.html](https://nixos.org/download.html) on how to install it.
|
||||
|
||||
## Enable the nix flakes feature
|
||||
For internal dependency management dream2nix requires the experimental nix feature `flakes` being enabled.
|
||||
```
|
||||
export NIX_CONFIG="extras-experimental-features = flakes nix-command"
|
||||
```
|
||||
|
||||
If you find yourself using dream2nix regularly, you can permanently save these settings by adding the following line to your `/etc/nix/nix.conf`:
|
||||
```
|
||||
experimental-features = flakes nix-command
|
||||
```
|
||||
{{#include ../install-nix.md}}
|
||||
|
||||
## Navigate to your python project
|
||||
In this example I will clone the python project [`httpie`](https://github.com/httpie/httpie) to `/tmp/my_project` as an example.
|
||||
|
13
docs/src/install-nix.md
Normal file
13
docs/src/install-nix.md
Normal file
@ -0,0 +1,13 @@
|
||||
## Install nix
|
||||
If you don't have nix already, check out [nixos.org/download.html](https://nixos.org/download.html) on how to install it.
|
||||
|
||||
## Enable the nix flakes feature
|
||||
For internal dependency management dream2nix requires the experimental nix feature `flakes` being enabled.
|
||||
```
|
||||
export NIX_CONFIG="extras-experimental-features = flakes nix-command"
|
||||
```
|
||||
|
||||
If you find yourself using dream2nix regularly, you can permanently save these settings by adding the following line to your `/etc/nix/nix.conf`:
|
||||
```
|
||||
experimental-features = flakes nix-command
|
||||
```
|
Loading…
Reference in New Issue
Block a user