home/go: remove redundant config

This commit is contained in:
Guanran Wang 2024-11-09 00:20:37 +08:00
parent f24774bf01
commit 27cd8af047
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

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