From 2525dc29b9d090d0d010301ce99bd560c8b654cd Mon Sep 17 00:00:00 2001 From: Ryan Cao <70191398+ryanccn@users.noreply.github.com> Date: Thu, 20 Jul 2023 10:22:50 +0800 Subject: [PATCH] manage go env with hm --- home.nix | 2 +- programs/go.nix | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/home.nix b/home.nix index cc1aed6..de3c48c 100644 --- a/home.nix +++ b/home.nix @@ -24,6 +24,6 @@ age.secrets."attic.toml" = { file = ./secrets/attic.toml.age; - path = "${config.xdg.configHome}/attic/config.toml"; + path = "${config.home.homeDirectory}/.config/attic/config.toml"; }; } diff --git a/programs/go.nix b/programs/go.nix index f2b594c..414ffbe 100644 --- a/programs/go.nix +++ b/programs/go.nix @@ -3,4 +3,9 @@ enable = true; goPath = ".go"; }; + + home.file."Library/Application Support/go/env".text = '' + GOTOOLCHAIN=path + GOPROXY=direct + ''; }