feat(go): Configure go

This commit is contained in:
punkfairie 2024-11-03 16:33:13 -08:00
parent 82b36c590c
commit 6db1648654
2 changed files with 14 additions and 0 deletions

View file

@ -10,6 +10,7 @@
./fish.nix
./fzf.nix
./gh.nix
./go.nix
./hyfetch.nix
./lazygit.nix
./less.nix

13
home/programs/go.nix Normal file
View file

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