nixos/cfssl: Add Disable Option

This commit is contained in:
liberodark
2025-04-08 11:06:30 +02:00
parent 7ddbdeb8a0
commit 4392f03db7
@@ -164,6 +164,12 @@ in
];
description = "Log level (0 = DEBUG, 5 = FATAL).";
};
disable = lib.mkOption {
default = null;
type = lib.types.nullOr lib.types.commas;
description = "Endpoints to disable (comma-separated list)";
};
};
config = lib.mkIf cfg.enable {
@@ -218,6 +224,7 @@ in
(opt "tls-remote-ca" tlsRemoteCa)
(opt "db-config" dbConfig)
(opt "loglevel" (toString logLevel))
(opt "disable" disable)
];
}
(lib.mkIf (cfg.dataDir == options.services.cfssl.dataDir.default) {