feat(go): Configure go

This commit is contained in:
punkfairie 2024-11-03 16:33:13 -08:00
parent fc0b9e3d13
commit 0db80951a2
Signed by: punkfairie
GPG key ID: 01823C057725C266
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}"
];
}