diff options
Diffstat (limited to 'home/programs/go.nix')
| -rw-r--r-- | home/programs/go.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/home/programs/go.nix b/home/programs/go.nix new file mode 100644 index 0000000..0ae1ec1 --- /dev/null +++ b/home/programs/go.nix @@ -0,0 +1,24 @@ +{ 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" + ]; +} |
