2024-07-07 17:24:15 +07:00
|
|
|
{ config, lib, unstable, pkgs, ... }:
|
2024-06-12 18:09:56 +07:00
|
|
|
let
|
|
|
|
cfg = config.profile.go;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-07-07 17:24:15 +07:00
|
|
|
programs.zsh.initExtra = ''zsh-defer source<(cat ${pkgs.zsh-completions}/share/zsh/site-functions/_golang)'';
|
2024-06-12 18:09:56 +07:00
|
|
|
programs.go = {
|
|
|
|
enable = true;
|
|
|
|
goPrivate = [
|
|
|
|
"gitlab.bareksa.com"
|
|
|
|
];
|
|
|
|
package = unstable.go_1_22;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|