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