Skip to content

Commit

Permalink
now that devenv is in Nixpkgs, we simplify installation
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Mar 23, 2024
1 parent b2c087c commit afa2952
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,47 +35,26 @@
curl -L https://raw.githubusercontent.com/NixOS/experimental-nix-installer/main/nix-installer.sh | sh -s install
```

### 2. Install [Cachix](https://cachix.org)
### 2. Install [devenv](https://github.com/cachix/devenv)

Speeds up the installation by providing binaries.

=== "Newcomers"

```
nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix use devenv
nix-env -iA devenv -f https://github.com/NixOS/nixpkgs/tarball/476a33c53da66a2a77a89bb9bcf54d5e3c232c3d
```

=== "Flake profiles"
=== "Nix profiles (requires experimental flags)"

```
nix profile install nixpkgs#cachix
cachix use devenv
nix profile install --accept-flake-config nixpkgs#devenv
```

### 3. Install [devenv](https://github.com/cachix/devenv)


=== "Newcomers"

```
nix-env -if https://install.devenv.sh/latest
```

=== "Flake profiles"

```
nix profile install --accept-flake-config tarball+https://install.devenv.sh/latest
```
=== "Declaratively using flakes"

See [Using flakes](../guides/using-with-flakes)

=== "Declaratively without flakes"
=== "NixOS/nix-darwin/home-manager"

```nix title="configuration.nix"
environment.systemPackages = [
(import (fetchTarball https://install.devenv.sh/latest)).default
pkgs.devenv
];
```

Expand Down

0 comments on commit afa2952

Please sign in to comment.