{ config, ... }:
{
programs.go = {
enable = true;
};
home.sessionPath =
let
goPath = config.programs.go.goPath;
in
[
"${if (goPath == null) then "go" else goPath}"
];
}