16 lines
266 B
Nix
16 lines
266 B
Nix
{ pkgs, config, ... }:
|
|
{
|
|
programs.go.enable = true;
|
|
home.packages = with pkgs; [
|
|
gopls
|
|
delve
|
|
go-tools
|
|
];
|
|
|
|
xdg.configFile = {
|
|
"go/env".text = ''
|
|
GOPATH=${config.xdg.cacheHome}/go
|
|
GOBIN=${config.xdg.stateHome}/go/bin
|
|
'';
|
|
};
|
|
}
|