flake/users/guanranwang/home-manager/resources/lang/go.nix

22 lines
297 B
Nix
Raw Normal View History

2023-11-06 11:23:58 +00:00
{
pkgs,
config,
...
}: {
home.packages = with pkgs; [
### Compiler
go
### LSP
gopls
];
# Make Go follow XDG
# "$HOME/go"...
xdg.configFile = {
"go/env".text = ''
GOPATH=${config.xdg.cacheHome}/go
GOBIN=${config.xdg.stateHome}/go/bin
'';
};
}