Skip to content

Commit

Permalink
nix: add direnv support for nix shell
Browse files Browse the repository at this point in the history
This adds a .envrc file for use with direnv (https://direnv.net/).
If enabled, this will automatically load a cached nix shell with
the default devShell from flake.nix.
  • Loading branch information
malt3 authored and katexochen committed Dec 19, 2023
1 parent a36992e commit 4651b7b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ mesh-root.pem
coordinator-root.pem
justfile.env
workspace
.direnv/
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,27 @@ from the surrounding environment.
### Getting started

1. [Install Nix](https://zero-to-nix.com/concepts/nix-installer)
2. Enter the development environment.
2. Enter the development environment manually.

```sh
nix develop .#
```
Or use [direnv](https://direnv.net/) to automatically enter the nix shell.
On non-NixOS systems, simply install [direnv](https://direnv.net/).
When using NixOS, enabling [nix-direnv](https://github.com/nix-community/nix-direnv) results in better caching.
Additionally, you may want to add the [vscode extension](https://github.com/direnv/direnv-vscode).

3. Execute and follow instructions of
```sh
direnv allow
```

4. Execute and follow instructions of

```sh
just onboard
```

4. Provision a CoCo enables AKS cluster with
5. Provision a CoCo enables AKS cluster with

```sh
just create
Expand Down

0 comments on commit 4651b7b

Please sign in to comment.