diff --git a/applications/ldap.nix b/applications/ldap.nix index 12ba71f..be574e4 100644 --- a/applications/ldap.nix +++ b/applications/ldap.nix @@ -2,7 +2,7 @@ Gonna use a priper nixos module for this */ -{ config, pkgs, lib, ... }: +{ config, pkgs, lib, inputs, ... }: with lib; let cfg = config.services.skynet_ldap; @@ -87,6 +87,14 @@ Gonna use a priper nixos module for this 636 ]; + services.nginx.virtualHosts = { + "${cfg.domain.sub}.${cfg.domain.base}.${cfg.domain.tld}" = { + forceSSL = true; + useACMEHost = "skynet"; + root = "${inputs.skynet_ldap_frontend.defaultPackage."x86_64-linux"}"; + }; + }; + # using https://nixos.wiki/wiki/OpenLDAP for base config systemd.services.openldap = {