feat(infra): add enable option

This commit is contained in:
2026-05-22 09:51:16 +02:00
parent a906b9b89d
commit a9ae884349
2 changed files with 16 additions and 3 deletions

View File

@@ -82,6 +82,7 @@
git.gitlab.enable = true;
secrets.vault.enable = true;
docker.enable = true;
infra.enable = true;
go.enable = true;
ticketing.enable = true;

View File

@@ -1,7 +1,19 @@
{ pkgs, ... }:
{
config = {
config,
lib,
pkgs,
...
}:
let
cfg = config.infra;
in
{
options.infra = {
enable = lib.mkEnableOption "infrastructure tools";
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
opentofu
upbound