services.tt-rss: do not unnecessarily start nginx

This commit is contained in:
Gabriel Ebner 2018-04-17 11:44:52 +02:00
parent e0c9a25588
commit d91caac6c3

View File

@ -466,10 +466,10 @@ let
''; '';
}; };
services.nginx = { # NOTE: No configuration is done if not using virtual host
services.nginx = mkIf (cfg.virtualHost != null) {
enable = true; enable = true;
# NOTE: No configuration is done if not using virtual host virtualHosts = {
virtualHosts = mkIf (cfg.virtualHost != null) {
"${cfg.virtualHost}" = { "${cfg.virtualHost}" = {
root = "${cfg.root}"; root = "${cfg.root}";