nixos/services/nginx_vHosts/nextcloud.nix

14 lines
463 B
Nix
Raw Normal View History

{ options, config, lib, pkgs, ... }:
2019-06-22 23:58:08 +02:00
with lib;
{
vHost = let
nextConf = import (lib.elemAt options.services.nextcloud.nginx.enable.declarations 0) { inherit config lib pkgs; };
in {
inherit ((elemAt nextConf.config.content.contents 2).content.services.nginx.virtualHosts.${config.services.nextcloud.hostName}) root extraConfig locations;
2019-06-22 23:58:08 +02:00
enableACME = config.services.nextcloud.https;
forceSSL = config.services.nextcloud.https;
};
}.vHost