aboutsummaryrefslogtreecommitdiff
path: root/home/programs/go.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/programs/go.nix')
-rw-r--r--home/programs/go.nix24
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"
+ ];
+}