flake/home/applications/go/default.nix

20 lines
272 B
Nix
Raw Normal View History

2023-11-06 11:23:58 +00:00
{
pkgs,
config,
...
}: {
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
'';
};
}