Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix: add direnv support for nix shell #11

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/).
katexochen marked this conversation as resolved.
Show resolved Hide resolved
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