What is the '*' in 'services.dokuwiki.<name>.nginx.listen.*.ssl' for?

I am trying to enable ssl for dokuwiki. I have used

services.dokuwiki.mywikiname.nginx.listen.*.ssl

but every time I run nixos-rebuild switch, I get the error

syntax error, unexpected '*'

I am guessing that I need to change the ‘*’ to something else, but I am unsure of what to change it to.

The star signifies a list of submodules. So here, you want services.dokuwiki.mywiki.nginx.listen = [ { ... } ];. The documentation of the listen option has a full example: NixOS Search - Loading...

1 Like