aboutsummaryrefslogblamecommitdiff
path: root/users/programs/go.nix
blob: 0ae1ec1cafbdcd1f827e3dc252654bf0c05c571b (plain) (tree)























                                                                        
{ pkgs, config, ... }:
{
  programs.go = {
    enable = true;
    goPath = ".local/share/pkg.go";
    goBin = ".local/bin.go";
    goPrivate = [
      "github.rbx.com/*"
      "github.com/fcuny/*"
    ];
  };

  home.packages = with pkgs; [
    delve
    go-tools # collection of tools, https://github.com/dominikh/go-tools
    golangci-lint
    gopls
  ];

  home.sessionPath = [
    config.home.sessionVariables.GOBIN
    "${config.home.homeDirectory}/.local/bin"
  ];
}