2024-01-25 20:56:40 +03:00
|
|
|
{ config, inputs, ... }: {
|
2024-01-22 16:44:51 +03:00
|
|
|
sops.secrets.authentik-env.sopsFile = inputs.self.secretsDir + /home-hypervisor/authentik.yaml;
|
|
|
|
sops.secrets.authentik-ldap.sopsFile = inputs.self.secretsDir + /home-hypervisor/authentik.yaml;
|
2024-01-25 20:56:40 +03:00
|
|
|
sops.secrets.authentik-env.restartUnits = [ "authentik-server.service" "authentik-worker.service" ];
|
|
|
|
sops.secrets.authentik-ldap.restartUnits = [ "authentik-ldap-outpost.service" ];
|
2023-01-26 04:45:14 +03:00
|
|
|
|
2024-01-25 20:56:40 +03:00
|
|
|
backups.postgresql.authentik = {};
|
2023-06-27 23:09:36 +03:00
|
|
|
|
2024-01-25 20:56:40 +03:00
|
|
|
services.authentik = {
|
|
|
|
enable = true;
|
|
|
|
logLevel = "info";
|
|
|
|
listen.address = "127.0.0.1";
|
|
|
|
listen.http = 9000;
|
|
|
|
listen.https = 9443;
|
|
|
|
environmentFile = config.sops.secrets.authentik-env.path;
|
|
|
|
outposts.ldap = {
|
|
|
|
enable = true;
|
|
|
|
host = "https://auth.ataraxiadev.com";
|
|
|
|
environmentFile = config.sops.secrets.authentik-ldap.path;
|
|
|
|
listen.address = "127.0.0.1";
|
|
|
|
listen.ldap = 3389;
|
|
|
|
listen.ldaps = 6636;
|
2023-01-26 04:45:14 +03:00
|
|
|
};
|
|
|
|
};
|
2023-11-11 03:17:20 +03:00
|
|
|
|
2024-01-25 20:56:40 +03:00
|
|
|
# networking.firewall.allowedTCPPorts = [ 389 ];
|
2023-01-26 04:45:14 +03:00
|
|
|
}
|