20 lines
308 B
Nix
20 lines
308 B
Nix
|
|
# 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
|
||
|
|
];
|
||
|
|
};
|
||
|
|
}
|