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}" + ]; +}