2023-11-06 11:23:58 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2023-11-06 12:01:28 +00:00
|
|
|
programs.go.enable = true;
|
2023-12-29 02:49:00 +00:00
|
|
|
home.packages = with pkgs; [
|
2024-06-14 23:25:48 +00:00
|
|
|
gopls
|
|
|
|
delve
|
|
|
|
go-tools
|
2023-12-29 02:49:00 +00:00
|
|
|
];
|
2023-11-06 11:23:58 +00:00
|
|
|
|
|
|
|
xdg.configFile = {
|
|
|
|
"go/env".text = ''
|
|
|
|
GOPATH=${config.xdg.cacheHome}/go
|
|
|
|
GOBIN=${config.xdg.stateHome}/go/bin
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|