27 lines
504 B
Nix
27 lines
504 B
Nix
{ user, home }:
|
|
{ pkgs, ... }:
|
|
{
|
|
environment.persistence."/persist/cache"."${home}/.local/share/go" = { };
|
|
|
|
home-manager.users.${user} = {
|
|
programs.go = {
|
|
enable = true;
|
|
goPath = ".local/share/go";
|
|
};
|
|
|
|
home = {
|
|
packages = with pkgs; [
|
|
gopls
|
|
go-tools
|
|
golangci-lint
|
|
golangci-lint-langserver
|
|
];
|
|
|
|
sessionVariables = {
|
|
GOPROXY = "goproxy.unx.sas.com";
|
|
GONOSUMDB = "*.sas.com,sassoftware.io";
|
|
};
|
|
};
|
|
};
|
|
}
|