use secret files
This commit is contained in:
parent
2fa576a302
commit
e3a9a391c2
2 changed files with 17 additions and 7 deletions
|
|
@ -19,15 +19,24 @@
|
|||
enable = true;
|
||||
};
|
||||
};
|
||||
users.groups.authentik-ldap = {};
|
||||
users.users.authentik-ldap = {
|
||||
isSystemUser = true;
|
||||
group = "authentik-ldap";
|
||||
};
|
||||
systemd.services.authentik-ldap.serviceConfig = {
|
||||
DynamicUser = lib.mkForce false;
|
||||
User = "authentik-ldap";
|
||||
};
|
||||
services.authentik-ldap = {
|
||||
enable = true;
|
||||
environmentFile = "/var/lib/authentik-ldap-env";
|
||||
environmentFile = config.sops.secrets."auth/ldap-env-file".path;
|
||||
# environmentFile = "/var/lib/authentik-ldap-env";
|
||||
};
|
||||
services.authentik = {
|
||||
enable = true;
|
||||
# The environmentFile needs to be on the target host!
|
||||
# Best use something like sops-nix or agenix to manage it
|
||||
environmentFile = "/var/lib/authentik_secret";
|
||||
# environmentFile = "/var/lib/authentik_secret";
|
||||
environmentFile = config.sops.secrets."auth/env-file".path;
|
||||
settings = {
|
||||
email = {
|
||||
host = "mail.${config.networking.domain}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue