From 029fd6fc0856e0ad27825c65114b59072ed9e3af Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sat, 8 Jul 2023 19:55:25 +0100 Subject: [PATCH] refactor(go): set `GOBIN` --- home/apps/go.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/home/apps/go.nix b/home/apps/go.nix index 10959ac..0d464b1 100644 --- a/home/apps/go.nix +++ b/home/apps/go.nix @@ -2,8 +2,9 @@ programs.go.enable = true; home.sessionVariables = { GOPATH = "${config.xdg.dataHome}/go"; + GOBIN = "${config.home.sessionVariables.GOPATH}/bin"; }; home.sessionPath = [ - "${config.home.sessionVariables.GOPATH}/bin" + "${config.home.sessionVariables.GOBIN}" ]; }