aboutsummaryrefslogtreecommitdiff
path: root/home/profiles/go.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/profiles/go.nix')
-rw-r--r--home/profiles/go.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/home/profiles/go.nix b/home/profiles/go.nix
index 87e7add..d6ea5f4 100644
--- a/home/profiles/go.nix
+++ b/home/profiles/go.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }:
+{ config, pkgs, ... }:
{
home.packages = with pkgs; [
go-tools # collection of tools, https://github.com/dominikh/go-tools
@@ -8,11 +8,12 @@
programs.go = {
enable = true;
- goPath = ".local/share/pkg.go";
- goBin = ".local/bin.go";
- goPrivate = [
- "github.rbx.com/*"
- "github.com/fcuny/*"
- ];
+ env = {
+ GOPATH = "${config.xdg.dataHome}/pkg.go";
+ GOPRIVATE = [
+ "github.rbx.com/*"
+ "fcuny.net/*"
+ ];
+ };
};
}