2026-05-02 09:08:40 +02:00
|
|
|
# Go toolchain — compiler and language server.
|
|
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
pkgs,
|
|
|
|
|
...
|
|
|
|
|
}:
|
|
|
|
|
with lib; let
|
|
|
|
|
cfg = config.coding.languages.go;
|
|
|
|
|
in {
|
|
|
|
|
options.coding.languages.go.enable = mkEnableOption "Go toolchain";
|
|
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
|
go
|
|
|
|
|
gopls
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
}
|