✨ feat(go): Properly set GOPATH
This commit is contained in:
parent
02be5fec5c
commit
7a03cf3dea
1 changed files with 7 additions and 6 deletions
|
@ -2,12 +2,13 @@
|
|||
{
|
||||
programs.go = {
|
||||
enable = true;
|
||||
|
||||
# Set this explicitly to avoid errors for the sessionPath.
|
||||
goPath = "go";
|
||||
};
|
||||
|
||||
home.sessionPath = [
|
||||
"${config.programs.go.goPath}"
|
||||
];
|
||||
home.sessionPath =
|
||||
let
|
||||
goPath = config.programs.go.goPath;
|
||||
in
|
||||
[
|
||||
"${if (goPath == null) then "go" else goPath}"
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue