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