MyNixOS website logo

Environment variables for Go. All the available options can be found running 'go env'.

Declarations
Type
open submodule of attribute set of string
Default
{ }
Example
{
  GOPATH = [
    "${config.home.homeDirectory}/mygo"
    "/another/go"
    "/yet/another/go"
  ];

  GOPRIVATE = [
    "*.corp.example.com"
    "rsc.io/private"
  ];

  CXX = "g++";
  GCCGO = "gccgo";
  GOAMD64 = "v1";
  GOARCH = "amd64";
  GOAUTH = "netrc";
};