NixOS 20.09 Changes.
This commit is contained in:
parent
f77aedf9a5
commit
528fec2f0d
6 changed files with 35 additions and 34 deletions
|
@ -2,12 +2,9 @@
|
|||
|
||||
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;
|
||||
if (config.services.nextcloud.enable == true) then {
|
||||
vHost = {
|
||||
enableACME = config.services.nextcloud.https;
|
||||
forceSSL = config.services.nextcloud.https;
|
||||
};
|
||||
}.vHost
|
||||
}.vHost else {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue