Inherit nextcloud vHost config from module.

This commit is contained in:
Kevin Baensch 2019-09-08 15:27:22 +02:00
parent 21b2170e67
commit 5c081e2797
2 changed files with 7 additions and 97 deletions

View file

@ -7,7 +7,7 @@
# - Mail ssl root #
##############################################################################################
{ config, lib, pkgs, ... }:
{ options, config, lib, pkgs, ... }:
with lib;
with builtins;
@ -17,7 +17,7 @@ mkIf (elem "nginx" config.machine.services) {
vHostConfigs = listToAttrs (map
(name: {
name = (replaceStrings [ ".nix" ] [ "" ] name);
value = (import (./. + (toPath "/nginx_vHosts/${name}")) { inherit config lib pkgs; });})
value = (import (./. + (toPath "/nginx_vHosts/${name}")) { inherit options config lib pkgs; });})
(attrNames (readDir ./nginx_vHosts)));
mkVHost = vHost: {