Something went wrong. Try again.
lol
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243{ lib, ... }:
{ options.services = { nginx = { enable = lib.mkOption { default = false; type = lib.types.bool; }; virtualHosts = lib.mkOption { type = lib.types.attrsOf ( lib.types.submodule { options = { enableSSL = lib.mkOption { default = false; type = lib.types.bool; }; ssl = { certificate = lib.mkOption { default = ""; type = lib.types.str; }; certificateKey = lib.mkOption { default = ""; type = lib.types.str; }; }; }; } ); default = { }; }; }; };
config = { services.nginx.virtualHosts."example.com" = { # Typo: "certficate" instead of "certificate" (nested within submodule) ssl.certficate = "/path/to/cert"; }; };}