CrOS/modules/services/auth-provider/default.nix
2025-10-15 16:31:14 -04:00

17 lines
471 B
Nix

{config, ...}: {
services.caddy = {
enable = true;
virtualHosts."auth.wanderingcrow.net".extraConfig = ''
reverse_proxy http://localhost:5555
'';
};
sops.templates.authentik-env.content = ''
AUTHENTIK_SECRET_KEY=qwerasvvbkuhjbn235987@!$
AUTHENTIK_LISTEN__HTTP=127.0.0.1:5555
AUTHENTIK_LISTEN__HTTPS=127.0.0.1:5443
'';
services.authentik = {
enable = true;
environmentFile = config.sops.templates.authentik-env.path;
};
}