feat(infra): add enable option
This commit is contained in:
@@ -82,6 +82,7 @@
|
||||
git.gitlab.enable = true;
|
||||
secrets.vault.enable = true;
|
||||
docker.enable = true;
|
||||
infra.enable = true;
|
||||
go.enable = true;
|
||||
ticketing.enable = true;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user