Skip to content

Commit 83ce110

Browse files
committed
chore: migrate from nix flakes to devbox
Development environment setup is now managed using devbox instead of nix flakes. Both solutions provide similar tooling (go, just, kubectl, etc.) but with different management approach. Signed-off-by: suin <[email protected]>
1 parent 42c4d93 commit 83ce110

File tree

6 files changed

+408
-98
lines changed

6 files changed

+408
-98
lines changed

.envrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# Automatically sets up your devbox environment whenever you cd into this
4+
# directory via our direnv integration:
5+
6+
eval "$(devbox generate direnv --print-envrc)"
7+
8+
# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
9+
# for more details
10+
export KUBECONFIG="$(pwd)/.kube"

CONTRIBUTING.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Development Environment Setup
44

55
### Prerequisites
6-
- [Nix](https://nixos.org) package manager
7-
- Nix flakes enabled
6+
- [Devbox](https://www.jetpack.io/devbox/) - Development environment manager
7+
- [direnv](https://direnv.net/) (recommended for automatic environment activation)
88

99
### Setting Up Development Environment
1010

@@ -16,12 +16,18 @@
1616

1717
2. Enter development shell:
1818
```bash
19-
nix develop
19+
devbox shell
2020
```
21+
Or if you have direnv installed and enabled:
22+
```bash
23+
direnv allow
24+
```
25+
2126
This will make the following tools available:
2227
- Go
2328
- Bun
2429
- Biome
30+
- just
2531
- kind
2632
- kubectl
2733

devbox.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.14.0/.schema/devbox.schema.json",
3+
"packages": [
4+
"bun@latest",
5+
"biome@latest",
6+
"go@latest",
7+
"just@latest",
8+
"kind@latest",
9+
"kubectl@latest"
10+
],
11+
"shell": {
12+
"init_hook": [
13+
"echo 'Welcome to devbox!' > /dev/null"
14+
],
15+
"scripts": {
16+
"test": [
17+
"echo \"Error: no test specified\" && exit 1"
18+
]
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)