go: Use correct attribute to set GOPATH

This commit is contained in:
Giulio De Pasquale 2023-03-29 19:59:57 +02:00
parent 811aa664a0
commit 99a634cef3

View File

@ -1,8 +1,6 @@
{ config, pkgs, lib, ... }: {
programs.go.enable = true;
home.sessionVariables = {
GOPATH = "$HOME/.local/share/go";
PATH = "$PATH:$GOPATH/bin";
programs.go = {
enable = true;
goPath = ".local/share/go";
};
}