1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00
flake/programs/go.nix

17 lines
264 B
Nix

{
lib,
stdenv,
...
}: let
inherit (stdenv) isDarwin;
in {
programs.go = {
enable = true;
goPath = ".go";
};
home.file."Library/Application Support/go/env".text = lib.optionalString isDarwin ''
GOTOOLCHAIN=path
GOPROXY=direct
'';
}