about summary refs log tree commit diff
path: root/nix/users/fcuny/go.nix
blob: 401abe3f544f2d070e7aa1e02e561d4a861eecb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, pkgs, ... }:
{
  home.packages = with pkgs; [
    go-tools
    golangci-lint
    gopls
    delve
  ];

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

  home.sessionPath = [ config.home.sessionVariables.GOBIN ];
}