Inherit nextcloud vHost config from module.
This commit is contained in:
parent
21b2170e67
commit
5c081e2797
2 changed files with 7 additions and 97 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue