From 6db1648654d1bd14f7e8e6bf9ac930a08d8ef002 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sun, 3 Nov 2024 16:33:13 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(go):=20Configure=20go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/programs/default.nix | 1 + home/programs/go.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 home/programs/go.nix diff --git a/home/programs/default.nix b/home/programs/default.nix index 27c932f..eabd3f4 100644 --- a/home/programs/default.nix +++ b/home/programs/default.nix @@ -10,6 +10,7 @@ ./fish.nix ./fzf.nix ./gh.nix + ./go.nix ./hyfetch.nix ./lazygit.nix ./less.nix diff --git a/home/programs/go.nix b/home/programs/go.nix new file mode 100644 index 0000000..f8b80ab --- /dev/null +++ b/home/programs/go.nix @@ -0,0 +1,13 @@ +{ config, ... }: +{ + programs.go = { + enable = true; + + # Set this explicitly to avoid errors for the sessionPath. + goPath = "go"; + }; + + home.sessionPath = [ + "${config.programs.go.goPath}" + ]; +}