nixos/cfssl: Add Disable Option (#393943)

authored by Sandro and committed by GitHub 44aa0e9d c115936c

+7
+7
nixos/modules/services/security/cfssl.nix
··· 164 ]; 165 description = "Log level (0 = DEBUG, 5 = FATAL)."; 166 }; 167 }; 168 169 config = lib.mkIf cfg.enable { ··· 218 (opt "tls-remote-ca" tlsRemoteCa) 219 (opt "db-config" dbConfig) 220 (opt "loglevel" (toString logLevel)) 221 ]; 222 } 223 (lib.mkIf (cfg.dataDir == options.services.cfssl.dataDir.default) {
··· 164 ]; 165 description = "Log level (0 = DEBUG, 5 = FATAL)."; 166 }; 167 + 168 + disable = lib.mkOption { 169 + default = null; 170 + type = lib.types.nullOr lib.types.commas; 171 + description = "Endpoints to disable (comma-separated list)"; 172 + }; 173 }; 174 175 config = lib.mkIf cfg.enable { ··· 224 (opt "tls-remote-ca" tlsRemoteCa) 225 (opt "db-config" dbConfig) 226 (opt "loglevel" (toString logLevel)) 227 + (opt "disable" disable) 228 ]; 229 } 230 (lib.mkIf (cfg.dataDir == options.services.cfssl.dataDir.default) {