From 99a634cef325072b8bcc1541af0fba37adafdc7e Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 29 Mar 2023 19:59:57 +0200 Subject: [PATCH] go: Use correct attribute to set GOPATH --- roles/home/go.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/roles/home/go.nix b/roles/home/go.nix index 3a65913..f227cba 100644 --- a/roles/home/go.nix +++ b/roles/home/go.nix @@ -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"; }; }