diff --git a/hosts/pinwheel/modules/go/default.nix b/hosts/pinwheel/modules/go/default.nix index 68011d4..2d5857b 100644 --- a/hosts/pinwheel/modules/go/default.nix +++ b/hosts/pinwheel/modules/go/default.nix @@ -20,7 +20,9 @@ in enable = true; package = pkgs.go; - goPath = "code/go"; + env = { + GOPATH = "code/go"; + }; }; home.packages = [ diff --git a/hosts/pinwheel/modules/work/default.nix b/hosts/pinwheel/modules/work/default.nix index 6fd5233..a265b89 100644 --- a/hosts/pinwheel/modules/work/default.nix +++ b/hosts/pinwheel/modules/work/default.nix @@ -37,7 +37,9 @@ in ]; programs.go = lib.mkIf goEnabled { - goPrivate = [ "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.work-go-private.path})" ]; + env = { + GOPRIVATE = [ "$(${pkgs.coreutils}/bin/cat ${config.age.secrets.work-go-private.path})" ]; + }; }; programs.git = lib.mkIf gitEnabled {