auth01: add lldap password to secrets
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled

This commit is contained in:
2025-12-06 11:02:43 +01:00
parent f2963a150b
commit 25b786915c
2 changed files with 15 additions and 9 deletions

View File

@@ -1,11 +1,21 @@
{ ... }:
{ config, ... }:
{
sops.secrets.lldap_user_pass = {
format = "yaml";
key = "lldap_user_pass";
sopsFile = ../../secrets/auth01/secrets.yaml;
restartUnits = [ "lldap.service" ];
owner = "lldap";
group = "lldap";
};
services.lldap = {
enable = true;
settings = {
ldap_base_dn = "dc=home,dc=2rjus,dc=net";
ldap_user_email = "admin@home.2rjus.net";
ldap_user_dn = "admin";
ldap_user_pass_file = config.sops.secrets.authelia_ldap_password.path;
ldaps_options = {
enabled = true;
port = 6360;