Make sure you have the Nix package manager installed and the "experimental" flake feature enabled:
$ cat ~/.config/nix/nix.conf
experimental-features = nix-command flakesThen 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).