From a9ae884349ef02cc7af8a7637545e032fc5ce32c Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 22 May 2026 09:51:16 +0200 Subject: [PATCH] feat(infra): add enable option --- home/hosts/work/default.nix | 1 + home/modules/infra/default.nix | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/home/hosts/work/default.nix b/home/hosts/work/default.nix index aedd6fef..6b712b5d 100644 --- a/home/hosts/work/default.nix +++ b/home/hosts/work/default.nix @@ -82,6 +82,7 @@ git.gitlab.enable = true; secrets.vault.enable = true; docker.enable = true; + infra.enable = true; go.enable = true; ticketing.enable = true; diff --git a/home/modules/infra/default.nix b/home/modules/infra/default.nix index 3c534612..e5044b48 100644 --- a/home/modules/infra/default.nix +++ b/home/modules/infra/default.nix @@ -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