modules.settings->shared: renamed mine.settings to mine.shared.settings

Allows to use it with other things, such as ...

mine.shared.lib
mine.shared.meta
mine.shared.settings
This commit is contained in:
eyjhb 2024-08-12 20:51:38 +02:00
parent 75ac478a80
commit 918c32299e
Signed by: eyjhb
GPG key ID: 609F508E3239F920
11 changed files with 45 additions and 45 deletions

View file

@ -1,7 +1,7 @@
{ config, ... }:
let
svc_domain = "ldap.${config.mine.settings.domain}";
svc_domain = "ldap.${config.mine.shared.settings.domain}";
in {
services.lldap = {
enable = true;
@ -9,7 +9,7 @@ in {
settings = {
verbose = true;
ldap_user_email = "fricloudlldap.grief462@simplelogin.com";
ldap_base_dn = config.mine.settings.ldap.dc;
ldap_base_dn = config.mine.shared.settings.ldap.dc;
};
environment = {
@ -48,12 +48,12 @@ in {
# The users are all located in ou=people, + the base DN, so by default user bob is at cn=bob,ou=people,dc=example,dc=com.
# Similarly, the groups are located in ou=groups, so the group family will be at cn=family,ou=groups,dc=example,dc=com.
# Testing group membership through memberOf is supported, so you can have a filter like: (memberOf=cn=admins,ou=groups,dc=example,dc=com).
mine.settings.ldap = rec {
mine.shared.settings.ldap = rec {
host = "localhost";
port = 3890;
url = "ldap://${host}:${builtins.toString port}";
dc = "dc=${config.mine.settings.domain_sld},dc=${config.mine.settings.domain_tld}";
dc = "dc=${config.mine.shared.settings.domain_sld},dc=${config.mine.shared.settings.domain_tld}";
bind_dn = "uid=${users.bind},ou=${ou.users},${dc}";
search_base = "ou=${ou.users},${dc}";
user_filter = "(memberof=cn=${groups.member},ou=${ou.groups},${dc})";