formatting

This commit is contained in:
revol-xut 2023-02-15 13:20:23 +01:00
parent bb23a7f67a
commit 82f47b66cb
No known key found for this signature in database
GPG key ID: 4F56FF7759627D07

View file

@ -69,23 +69,25 @@ in
}; };
#users.ldap = { #users.ldap = {
#enable = true; #enable = true;
#server = "ldap://localhost"; #server = "ldap://localhost";
#base = "${config.services.portunus.ldap.suffix}"; #base = "${config.services.portunus.ldap.suffix}";
#}; #};
users.ldap = let users.ldap =
portunus = config.services.portunus; let
base = "ou=users,${portunus.ldap.suffix}"; portunus = config.services.portunus;
in { base = "ou=users,${portunus.ldap.suffix}";
enable = true; in
server = "ldap://localhost"; {
base = base; enable = true;
bind = { server = "ldap://localhost";
distinguishedName = "uid=${portunus.ldap.searchUserName},${base}"; base = base;
passwordFile = config.sops.secrets.unix_ldap_search.path; bind = {
distinguishedName = "uid=${portunus.ldap.searchUserName},${base}";
passwordFile = config.sops.secrets.unix_ldap_search.path;
};
daemon.enable = true;
}; };
daemon.enable = true;
};
services.nginx = { services.nginx = {