nixos-config/hosts/nuc/modules/authentik/default.nix

22 lines
460 B
Nix
Raw Normal View History

2024-05-20 12:19:05 +02:00
{ config, ... }:
let
domain = "auth.${config.networking.domain}";
in
{
age.secrets.authentik = {
file = ../../../../secrets/nuc/authentik.age;
};
services.authentik = {
enable = true;
environmentFile = config.age.secrets.authentik.path;
2024-05-21 18:44:04 +02:00
# nginx = {
# enable = true;
# enableACME = true;
# host = domain;
# };
2024-05-20 12:19:05 +02:00
};
2024-05-21 18:44:04 +02:00
services.caddy.virtualHosts."${domain}".extraConfig = ''
reverse_proxy localhost:9000
'';
2024-05-20 12:19:05 +02:00
}