feat(go): Properly set GOPATH

This commit is contained in:
punkfairie 2024-11-03 18:48:30 -08:00
parent 02be5fec5c
commit 7a03cf3dea

View file

@ -2,12 +2,13 @@
{ {
programs.go = { programs.go = {
enable = true; enable = true;
# Set this explicitly to avoid errors for the sessionPath.
goPath = "go";
}; };
home.sessionPath = [ home.sessionPath =
"${config.programs.go.goPath}" let
]; goPath = config.programs.go.goPath;
in
[
"${if (goPath == null) then "go" else goPath}"
];
} }