From 1bbd4e19c5595e6a6c310bd36fac5b4bd97ff39f Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 16 Dec 2024 09:25:23 -0800 Subject: refactor home-manager Only install what's needed for specific OSes. --- nix/users/fcuny/go.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 nix/users/fcuny/go.nix (limited to 'nix/users/fcuny/go.nix') diff --git a/nix/users/fcuny/go.nix b/nix/users/fcuny/go.nix new file mode 100644 index 0000000..b52f89e --- /dev/null +++ b/nix/users/fcuny/go.nix @@ -0,0 +1,12 @@ +{ 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 ]; +} -- cgit v1.2.3