aboutsummaryrefslogtreecommitdiff
path: root/home/programs/go.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-08-12 08:52:51 -0700
committerFranck Cuny <franck@fcuny.net>2025-08-12 08:52:51 -0700
commit61fa2329f553f9c7962e968e1ec98ae675903b70 (patch)
tree0afdbf7c8fddda1718abee49db6206a5f8df5b09 /home/programs/go.nix
parentdirectories first (diff)
downloadinfra-61fa2329f553f9c7962e968e1ec98ae675903b70.tar.gz
users -> home
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"
+ ];
+}