This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
22
docs/introduction-to-nix/install-nix.md
Normal file
22
docs/introduction-to-nix/install-nix.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# Install Nix
|
||||
|
||||
Install the Nix package manager according to the official documentation on [nixos.org](https://nixos.org/download/).
|
||||
|
||||
On Linux, simply run:
|
||||
|
||||
```bash
|
||||
sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
Add the following to `~/.config/nix/nix.conf` (recommended) or `/etc/nix/nix.conf`:
|
||||
|
||||
```ini
|
||||
experimental-features = nix-command flakes
|
||||
```
|
||||
|
||||
- `nix-command` enables the [new `nix` CLI](https://nix.dev/manual/nix/2.29/command-ref/new-cli/nix.html) Nix is transitioning to.
|
||||
- `flakes` will be covered later in this guide. Don't worry about them for now.
|
||||
|
||||
Reload your session to get access to the `nix` command.
|
||||
Loading…
Add table
Add a link
Reference in a new issue