feat(go): add enable option

This commit is contained in:
2026-05-22 09:50:48 +02:00
parent 505aa1d356
commit a74a184035
2 changed files with 21 additions and 5 deletions

View File

@@ -81,6 +81,7 @@
git.github.enable = true;
git.gitlab.enable = true;
secrets.vault.enable = true;
go.enable = true;
ticketing.enable = true;
programs = {

View File

@@ -1,7 +1,22 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
go
gopls
];
config,
lib,
pkgs,
...
}:
let
cfg = config.go;
in
{
options.go = {
enable = lib.mkEnableOption "Go";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
go
gopls
];
};
}