Make sure you have the Nix package manager installed and the "experimental" flake feature enabled:
$ cat ~/.config/nix/nix.conf
experimental-features = nix-command flakes
Then run nix develop
to get all required tools installed.
Starting VSCode using code .
will configure most parts of the IDE properly (the Go extension is necessary, of course).
On Darwin it might be helpful to add additional tools like gnumake
to the deps_build
variable (line 12 of the flake.nix
file).
In kro: copy the flake.nix
file to the kro repository.
Add it using git add -N flake.nix
.
Run nix flake lock
and also add the flake.lock
file.